| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/extension_webrequest_api.h" | 5 #include "chrome/browser/extensions/extension_webrequest_api.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "chrome/browser/profiles/profile.h" | 26 #include "chrome/browser/profiles/profile.h" |
| 27 #include "chrome/browser/profiles/profile_manager.h" | 27 #include "chrome/browser/profiles/profile_manager.h" |
| 28 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" | 28 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
| 29 #include "chrome/browser/renderer_host/web_cache_manager.h" | 29 #include "chrome/browser/renderer_host/web_cache_manager.h" |
| 30 #include "chrome/common/extensions/extension.h" | 30 #include "chrome/common/extensions/extension.h" |
| 31 #include "chrome/common/extensions/extension_error_utils.h" | 31 #include "chrome/common/extensions/extension_error_utils.h" |
| 32 #include "chrome/common/extensions/extension_messages.h" | 32 #include "chrome/common/extensions/extension_messages.h" |
| 33 #include "chrome/common/extensions/url_pattern.h" | 33 #include "chrome/common/extensions/url_pattern.h" |
| 34 #include "chrome/common/url_constants.h" | 34 #include "chrome/common/url_constants.h" |
| 35 #include "content/browser/browser_message_filter.h" | 35 #include "content/browser/browser_message_filter.h" |
| 36 #include "content/browser/renderer_host/render_process_host.h" |
| 36 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 37 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
| 37 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" | 38 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" |
| 38 #include "content/public/browser/browser_thread.h" | 39 #include "content/public/browser/browser_thread.h" |
| 39 #include "googleurl/src/gurl.h" | 40 #include "googleurl/src/gurl.h" |
| 40 #include "grit/generated_resources.h" | 41 #include "grit/generated_resources.h" |
| 41 #include "net/base/auth.h" | 42 #include "net/base/auth.h" |
| 42 #include "net/base/net_errors.h" | 43 #include "net/base/net_errors.h" |
| 43 #include "net/base/net_log.h" | 44 #include "net/base/net_log.h" |
| 44 #include "net/http/http_response_headers.h" | 45 #include "net/http/http_response_headers.h" |
| 45 #include "net/http/http_util.h" | 46 #include "net/http/http_util.h" |
| (...skipping 1873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1919 } else if ((*it)->name().find("AdBlock") != std::string::npos) { | 1920 } else if ((*it)->name().find("AdBlock") != std::string::npos) { |
| 1920 adblock = true; | 1921 adblock = true; |
| 1921 } else { | 1922 } else { |
| 1922 other = true; | 1923 other = true; |
| 1923 } | 1924 } |
| 1924 } | 1925 } |
| 1925 } | 1926 } |
| 1926 | 1927 |
| 1927 host->Send(new ExtensionMsg_UsingWebRequestAPI(adblock, adblock_plus, other)); | 1928 host->Send(new ExtensionMsg_UsingWebRequestAPI(adblock, adblock_plus, other)); |
| 1928 } | 1929 } |
| OLD | NEW |