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

Side by Side Diff: chrome/browser/extensions/extension_webrequest_api.cc

Issue 8493017: Cleanup extension permissions module. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 11 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/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 20 matching lines...) Expand all
31 #include "chrome/common/extensions/extension.h" 31 #include "chrome/common/extensions/extension.h"
32 #include "chrome/common/extensions/extension_constants.h" 32 #include "chrome/common/extensions/extension_constants.h"
33 #include "chrome/common/extensions/extension_error_utils.h" 33 #include "chrome/common/extensions/extension_error_utils.h"
34 #include "chrome/common/extensions/extension_messages.h" 34 #include "chrome/common/extensions/extension_messages.h"
35 #include "chrome/common/extensions/url_pattern.h" 35 #include "chrome/common/extensions/url_pattern.h"
36 #include "chrome/common/url_constants.h" 36 #include "chrome/common/url_constants.h"
37 #include "content/browser/renderer_host/resource_dispatcher_host.h" 37 #include "content/browser/renderer_host/resource_dispatcher_host.h"
38 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" 38 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h"
39 #include "content/public/browser/browser_message_filter.h" 39 #include "content/public/browser/browser_message_filter.h"
40 #include "content/public/browser/browser_thread.h" 40 #include "content/public/browser/browser_thread.h"
41 #include "content/public/browser/render_process_host.h"
41 #include "googleurl/src/gurl.h" 42 #include "googleurl/src/gurl.h"
42 #include "grit/generated_resources.h" 43 #include "grit/generated_resources.h"
43 #include "net/base/auth.h" 44 #include "net/base/auth.h"
44 #include "net/base/net_errors.h" 45 #include "net/base/net_errors.h"
45 #include "net/base/net_log.h" 46 #include "net/base/net_log.h"
46 #include "net/http/http_response_headers.h" 47 #include "net/http/http_response_headers.h"
47 #include "net/url_request/url_request.h" 48 #include "net/url_request/url_request.h"
48 #include "ui/base/l10n/l10n_util.h" 49 #include "ui/base/l10n/l10n_util.h"
49 50
50 using content::BrowserMessageFilter; 51 using content::BrowserMessageFilter;
(...skipping 1673 matching lines...) Expand 10 before | Expand all | Expand 10 after
1724 } else if ((*it)->name().find("AdBlock") != std::string::npos) { 1725 } else if ((*it)->name().find("AdBlock") != std::string::npos) {
1725 adblock = true; 1726 adblock = true;
1726 } else { 1727 } else {
1727 other = true; 1728 other = true;
1728 } 1729 }
1729 } 1730 }
1730 } 1731 }
1731 1732
1732 host->Send(new ExtensionMsg_UsingWebRequestAPI(adblock, adblock_plus, other)); 1733 host->Send(new ExtensionMsg_UsingWebRequestAPI(adblock, adblock_plus, other));
1733 } 1734 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tab_helper.cc ('k') | chrome/browser/extensions/lazy_background_page_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698