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

Side by Side Diff: chrome/browser/extensions/api/web_request/web_request_api.h

Issue 10553010: Rename IPC::Channel and IPC::Sender in src/chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/memory/singleton.h" 15 #include "base/memory/singleton.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "chrome/browser/extensions/api/declarative_webrequest/request_stages.h" 17 #include "chrome/browser/extensions/api/declarative_webrequest/request_stages.h"
18 #include "chrome/browser/extensions/api/web_request/web_request_api_helpers.h" 18 #include "chrome/browser/extensions/api/web_request/web_request_api_helpers.h"
19 #include "chrome/browser/extensions/extension_function.h" 19 #include "chrome/browser/extensions/extension_function.h"
20 #include "chrome/browser/profiles/profile.h" 20 #include "chrome/browser/profiles/profile.h"
21 #include "chrome/common/extensions/url_pattern_set.h" 21 #include "chrome/common/extensions/url_pattern_set.h"
22 #include "ipc/ipc_message.h" 22 #include "ipc/ipc_sender.h"
23 #include "net/base/completion_callback.h" 23 #include "net/base/completion_callback.h"
24 #include "net/base/network_delegate.h" 24 #include "net/base/network_delegate.h"
25 #include "net/http/http_request_headers.h" 25 #include "net/http/http_request_headers.h"
26 #include "webkit/glue/resource_type.h" 26 #include "webkit/glue/resource_type.h"
27 27
28 class ExtensionInfoMap; 28 class ExtensionInfoMap;
29 class ExtensionWebRequestTimeTracker; 29 class ExtensionWebRequestTimeTracker;
30 class GURL; 30 class GURL;
31 31
32 namespace base { 32 namespace base {
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // the extension process to correspond to the given filter and 231 // the extension process to correspond to the given filter and
232 // extra_info_spec. It returns true on success, false on failure. 232 // extra_info_spec. It returns true on success, false on failure.
233 bool AddEventListener( 233 bool AddEventListener(
234 void* profile, 234 void* profile,
235 const std::string& extension_id, 235 const std::string& extension_id,
236 const std::string& extension_name, 236 const std::string& extension_name,
237 const std::string& event_name, 237 const std::string& event_name,
238 const std::string& sub_event_name, 238 const std::string& sub_event_name,
239 const RequestFilter& filter, 239 const RequestFilter& filter,
240 int extra_info_spec, 240 int extra_info_spec,
241 base::WeakPtr<IPC::Message::Sender> ipc_sender); 241 base::WeakPtr<IPC::Sender> ipc_sender);
242 242
243 // Removes the listener for the given sub-event. 243 // Removes the listener for the given sub-event.
244 void RemoveEventListener( 244 void RemoveEventListener(
245 void* profile, 245 void* profile,
246 const std::string& extension_id, 246 const std::string& extension_id,
247 const std::string& sub_event_name); 247 const std::string& sub_event_name);
248 248
249 // Called when an incognito profile is created or destroyed. 249 // Called when an incognito profile is created or destroyed.
250 void OnOTRProfileCreated(void* original_profile, 250 void OnOTRProfileCreated(void* original_profile,
251 void* otr_profile); 251 void* otr_profile);
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 virtual void OnQuotaExceeded() OVERRIDE; 415 virtual void OnQuotaExceeded() OVERRIDE;
416 virtual bool RunImpl() OVERRIDE; 416 virtual bool RunImpl() OVERRIDE;
417 }; 417 };
418 418
419 // Send updates to |host| with information about what webRequest-related 419 // Send updates to |host| with information about what webRequest-related
420 // extensions are installed. 420 // extensions are installed.
421 // TODO(mpcomplete): remove. http://crbug.com/100411 421 // TODO(mpcomplete): remove. http://crbug.com/100411
422 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); 422 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host);
423 423
424 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ 424 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/webui_login_view.cc ('k') | chrome/browser/extensions/api/web_request/web_request_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698