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

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

Issue 3120021: FBTF: Header cleanup in chrome/common part 2. The majority of the changed files (Closed)
Patch Set: Win fix 2. 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 the Chrome Extensions Cookies API functions for accessing internet 5 // Defines the Chrome Extensions Cookies API functions for accessing internet
6 // cookies, as specified in chrome/common/extensions/api/extension_api.json. 6 // cookies, as specified in chrome/common/extensions/api/extension_api.json.
7 7
8 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_API_H_ 8 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_API_H_
9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_API_H_ 9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_API_H_
10 #pragma once 10 #pragma once
11 11
12 #include <string> 12 #include <string>
13 13
14 #include "base/ref_counted.h" 14 #include "base/ref_counted.h"
15 #include "base/singleton.h" 15 #include "base/singleton.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "chrome/browser/extensions/extension_function.h" 17 #include "chrome/browser/extensions/extension_function.h"
18 #include "chrome/browser/net/chrome_cookie_notification_details.h" 18 #include "chrome/browser/net/chrome_cookie_notification_details.h"
19 #include "chrome/common/notification_observer.h"
19 #include "chrome/common/notification_registrar.h" 20 #include "chrome/common/notification_registrar.h"
20 #include "googleurl/src/gurl.h" 21 #include "googleurl/src/gurl.h"
21 #include "net/base/cookie_monster.h" 22 #include "net/base/cookie_monster.h"
22 23
23 class DictionaryValue; 24 class DictionaryValue;
24 class URLRequestContextGetter; 25 class URLRequestContextGetter;
25 26
26 // Observes CookieMonster notifications and routes them as events to the 27 // Observes CookieMonster notifications and routes them as events to the
27 // extension system. 28 // extension system.
28 class ExtensionCookiesEventRouter : public NotificationObserver { 29 class ExtensionCookiesEventRouter : public NotificationObserver {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 public: 165 public:
165 virtual bool RunImpl(); 166 virtual bool RunImpl();
166 // GetAllCookieStoresFunction is sync. 167 // GetAllCookieStoresFunction is sync.
167 virtual void Run() { 168 virtual void Run() {
168 SendResponse(RunImpl()); 169 SendResponse(RunImpl());
169 } 170 }
170 DECLARE_EXTENSION_FUNCTION_NAME("cookies.getAllCookieStores") 171 DECLARE_EXTENSION_FUNCTION_NAME("cookies.getAllCookieStores")
171 }; 172 };
172 173
173 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_API_H_ 174 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_bookmarks_module.h ('k') | chrome/browser/extensions/extension_message_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698