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

Side by Side Diff: chrome/browser/extensions/api/web_request/web_request_api_helpers.cc

Issue 148083014: ExtensionSystem cleanup part 3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac Created 6 years, 10 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 #include "chrome/browser/extensions/api/web_request/web_request_api_helpers.h" 5 #include "chrome/browser/extensions/api/web_request/web_request_api_helpers.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/browser_process.h" 15 #include "chrome/browser/browser_process.h"
16 #include "chrome/browser/extensions/api/web_request/web_request_api.h" 16 #include "chrome/browser/extensions/api/web_request/web_request_api.h"
17 #include "chrome/browser/extensions/extension_warning_set.h" 17 #include "chrome/browser/extensions/extension_warning_set.h"
18 #include "chrome/browser/profiles/profile_manager.h" 18 #include "chrome/browser/profiles/profile_manager.h"
19 #include "chrome/browser/renderer_host/web_cache_manager.h" 19 #include "chrome/browser/renderer_host/web_cache_manager.h"
20 #include "chrome/common/url_constants.h" 20 #include "chrome/common/url_constants.h"
21 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
22 #include "content/public/browser/render_process_host.h" 22 #include "content/public/browser/render_process_host.h"
23 #include "extensions/browser/extension_system.h"
23 #include "extensions/browser/runtime_data.h" 24 #include "extensions/browser/runtime_data.h"
24 #include "net/base/net_log.h" 25 #include "net/base/net_log.h"
25 #include "net/cookies/cookie_util.h" 26 #include "net/cookies/cookie_util.h"
26 #include "net/cookies/parsed_cookie.h" 27 #include "net/cookies/parsed_cookie.h"
27 #include "net/http/http_util.h" 28 #include "net/http/http_util.h"
28 #include "net/url_request/url_request.h" 29 #include "net/url_request/url_request.h"
29 30
30 // TODO(battre): move all static functions into an anonymous namespace at the 31 // TODO(battre): move all static functions into an anonymous namespace at the
31 // top of this file. 32 // top of this file.
32 33
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 for (content::RenderProcessHost::iterator it = 1275 for (content::RenderProcessHost::iterator it =
1275 content::RenderProcessHost::AllHostsIterator(); 1276 content::RenderProcessHost::AllHostsIterator();
1276 !it.IsAtEnd(); it.Advance()) { 1277 !it.IsAtEnd(); it.Advance()) {
1277 content::RenderProcessHost* host = it.GetCurrentValue(); 1278 content::RenderProcessHost* host = it.GetCurrentValue();
1278 if (host->GetBrowserContext() == browser_context) 1279 if (host->GetBrowserContext() == browser_context)
1279 SendExtensionWebRequestStatusToHost(host); 1280 SendExtensionWebRequestStatusToHost(host);
1280 } 1281 }
1281 } 1282 }
1282 1283
1283 } // namespace extension_web_request_api_helpers 1284 } // namespace extension_web_request_api_helpers
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698