Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit bba7e3c

Browse files
author
Ehsan Akhgari
committed
Bug 1547114 - Part 8: Move nsCookiePermission to netwerk/cookie; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D29078 --HG-- rename : extensions/cookie/nsCookiePermission.cpp => netwerk/cookie/nsCookiePermission.cpp rename : extensions/cookie/nsCookiePermission.h => netwerk/cookie/nsCookiePermission.h extra : moz-landing-system : lando
1 parent 72fd096 commit bba7e3c

6 files changed

Lines changed: 8 additions & 5 deletions

File tree

extensions/cookie/moz.build

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@
66

77
TEST_DIRS += ['test']
88

9-
EXPORTS += [
10-
'nsCookiePermission.h',
11-
]
12-
139
UNIFIED_SOURCES += [
14-
'nsCookiePermission.cpp',
1510
'nsPermission.cpp',
1611
'nsPermissionManager.cpp',
1712
]

extensions/cookie/nsPermission.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#include "nsContentUtils.h"
88
#include "nsIClassInfoImpl.h"
99
#include "nsIEffectiveTLDService.h"
10+
#include "nsNetCID.h"
11+
#include "nsNetUtil.h"
1012
#include "mozilla/BasePrincipal.h"
1113

1214
// nsPermission Implementation

extensions/cookie/nsPermission.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#define nsPermission_h__
88

99
#include "nsIPermission.h"
10+
#include "nsCOMPtr.h"
1011
#include "nsString.h"
1112

1213
////////////////////////////////////////////////////////////////////////////////

netwerk/cookie/moz.build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ XPIDL_SOURCES += [
2020
XPIDL_MODULE = 'necko_cookie'
2121

2222
if CONFIG['NECKO_COOKIES']:
23+
EXPORTS += [
24+
'nsCookiePermission.h',
25+
]
26+
2327
EXPORTS.mozilla.net = [
2428
'CookieServiceChild.h',
2529
'CookieServiceParent.h',
@@ -31,6 +35,7 @@ if CONFIG['NECKO_COOKIES']:
3135
'CookieServiceParent.cpp',
3236
'CookieSettings.cpp',
3337
'nsCookie.cpp',
38+
'nsCookiePermission.cpp',
3439
]
3540
# nsCookieService.cpp can't be unified because of symbol conflicts
3641
SOURCES += [

0 commit comments

Comments
 (0)