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

Unified Diff: chrome/browser/extensions/api/cookies/cookies_api.h

Issue 10915153: Cleanup: Simplify some extension API code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/cookies/cookies_api.h
===================================================================
--- chrome/browser/extensions/api/cookies/cookies_api.h (revision 155424)
+++ chrome/browser/extensions/api/cookies/cookies_api.h (working copy)
@@ -11,9 +11,8 @@
#include <string>
#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/ref_counted.h"
-#include "base/time.h"
+#include "base/memory/scoped_ptr.h"
#include "chrome/browser/extensions/extension_function.h"
#include "chrome/browser/net/chrome_cookie_notification_details.h"
#include "chrome/common/extensions/api/cookies.h"
@@ -22,10 +21,6 @@
#include "googleurl/src/gurl.h"
#include "net/cookies/canonical_cookie.h"
-namespace base {
-class DictionaryValue;
-}
-
namespace net {
class URLRequestContextGetter;
}
@@ -49,12 +44,10 @@
// Handler for the COOKIE_CHANGED event. The method takes the details of such
// an event and constructs a suitable JSON formatted extension event from it.
- void CookieChanged(Profile* profile,
- ChromeCookieDetails* details);
+ void CookieChanged(ChromeCookieDetails* details);
// This method dispatches events to the extension message service.
- void DispatchEvent(Profile* context,
- const char* event_name,
+ void DispatchEvent(const std::string& event_name,
scoped_ptr<base::ListValue> event_args,
GURL& cookie_domain);

Powered by Google App Engine
This is Rietveld 408576698