Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Side by Side Diff: chrome/browser/extensions/extension_cookies_helpers.h

Issue 3027041: Remove obviously unneeded forward declarations in chrome/browser/[abef]*/*.h. (Closed)
Patch Set: oops, missed one previously Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Defines common functionality used by the implementation of the Chrome 5 // Defines common functionality used by the implementation of the Chrome
6 // Extensions Cookies API implemented in 6 // Extensions Cookies API implemented in
7 // chrome/browser/extensions/extension_cookies_api.cc. This separate interface 7 // chrome/browser/extensions/extension_cookies_api.cc. This separate interface
8 // exposes pieces of the API implementation mainly for unit testing purposes. 8 // exposes pieces of the API implementation mainly for unit testing purposes.
9 9
10 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_HELPERS_H_ 10 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_HELPERS_H_
11 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_HELPERS_H_ 11 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_HELPERS_H_
12 #pragma once 12 #pragma once
13 13
14 #include <string> 14 #include <string>
15 15
16 #include "base/values.h"
17 #include "net/base/cookie_monster.h" 16 #include "net/base/cookie_monster.h"
18 17
19 class Browser; 18 class Browser;
19 class DictionaryValue;
20 class Extension; 20 class Extension;
21 class ListValue;
21 class Profile; 22 class Profile;
22 23
23 namespace extension_cookies_helpers { 24 namespace extension_cookies_helpers {
24 25
25 // Returns either the original profile or the incognito profile, based on the 26 // Returns either the original profile or the incognito profile, based on the
26 // given store ID. Returns NULL if the profile doesn't exist or is not allowed 27 // given store ID. Returns NULL if the profile doesn't exist or is not allowed
27 // (e.g. if incognito mode is not enabled for the extension). 28 // (e.g. if incognito mode is not enabled for the extension).
28 Profile* ChooseProfileFromStoreId(const std::string& store_id, 29 Profile* ChooseProfileFromStoreId(const std::string& store_id,
29 Profile* profile, 30 Profile* profile,
30 bool include_incognito); 31 bool include_incognito);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // as '.foo.bar.com', and both will match cookies with domain values of 109 // as '.foo.bar.com', and both will match cookies with domain values of
109 // 'foo.bar.com', '.foo.bar.com', and 'baz.foo.bar.com'. 110 // 'foo.bar.com', '.foo.bar.com', and 'baz.foo.bar.com'.
110 bool MatchesDomain(const std::string& domain); 111 bool MatchesDomain(const std::string& domain);
111 112
112 const DictionaryValue* details_; 113 const DictionaryValue* details_;
113 }; 114 };
114 115
115 } // namespace extension_cookies_helpers 116 } // namespace extension_cookies_helpers
116 117
117 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_HELPERS_H_ 118 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_HELPERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698