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

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

Issue 9701039: Refactor folders in chrome/browser/extensions/api (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Small change to includes in extension_event_router.cc Created 8 years, 9 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) 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_WEBREQUEST_WEBREQUEST_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEBREQUEST_WEBREQUEST_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/webrequest/webrequest_api_helpers.h" 17 #include "chrome/browser/extensions/api/web_request/web_request_api_helpers.h"
18 #include "chrome/browser/extensions/extension_function.h" 18 #include "chrome/browser/extensions/extension_function.h"
19 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/common/extensions/url_pattern_set.h" 20 #include "chrome/common/extensions/url_pattern_set.h"
21 #include "ipc/ipc_message.h" 21 #include "ipc/ipc_message.h"
22 #include "net/base/completion_callback.h" 22 #include "net/base/completion_callback.h"
23 #include "net/base/network_delegate.h" 23 #include "net/base/network_delegate.h"
24 #include "net/http/http_request_headers.h" 24 #include "net/http/http_request_headers.h"
25 #include "webkit/glue/resource_type.h" 25 #include "webkit/glue/resource_type.h"
26 26
27 class ExtensionInfoMap; 27 class ExtensionInfoMap;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // The time that the extension was installed. Used for deciding order of 106 // The time that the extension was installed. Used for deciding order of
107 // precedence in case multiple extensions respond with conflicting 107 // precedence in case multiple extensions respond with conflicting
108 // decisions. 108 // decisions.
109 base::Time extension_install_time; 109 base::Time extension_install_time;
110 110
111 // Response values. These are mutually exclusive. 111 // Response values. These are mutually exclusive.
112 bool cancel; 112 bool cancel;
113 GURL new_url; 113 GURL new_url;
114 scoped_ptr<net::HttpRequestHeaders> request_headers; 114 scoped_ptr<net::HttpRequestHeaders> request_headers;
115 scoped_ptr<extension_webrequest_api_helpers::ResponseHeaders> 115 scoped_ptr<extension_web_request_api_helpers::ResponseHeaders>
116 response_headers; 116 response_headers;
117 117
118 scoped_ptr<net::AuthCredentials> auth_credentials; 118 scoped_ptr<net::AuthCredentials> auth_credentials;
119 119
120 EventResponse(const std::string& extension_id, 120 EventResponse(const std::string& extension_id,
121 const base::Time& extension_install_time); 121 const base::Time& extension_install_time);
122 ~EventResponse(); 122 ~EventResponse();
123 123
124 DISALLOW_COPY_AND_ASSIGN(EventResponse); 124 DISALLOW_COPY_AND_ASSIGN(EventResponse);
125 }; 125 };
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 // Handle quota exceeded gracefully: Only warn the user but still execute the 373 // Handle quota exceeded gracefully: Only warn the user but still execute the
374 // function. 374 // function.
375 virtual void OnQuotaExceeded() OVERRIDE; 375 virtual void OnQuotaExceeded() OVERRIDE;
376 }; 376 };
377 377
378 // Send updates to |host| with information about what webRequest-related 378 // Send updates to |host| with information about what webRequest-related
379 // extensions are installed. 379 // extensions are installed.
380 // TODO(mpcomplete): remove. http://crbug.com/100411 380 // TODO(mpcomplete): remove. http://crbug.com/100411
381 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); 381 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host);
382 382
383 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBREQUEST_WEBREQUEST_API_H_ 383 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698