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

Side by Side Diff: extensions/browser/extension_protocols.cc

Issue 2576663004: content::ResourceType clean up (Closed)
Patch Set: Rebase Created 4 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/extension_protocols.h" 5 #include "extensions/browser/extension_protocols.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #include "net/http/http_request_headers.h" 59 #include "net/http/http_request_headers.h"
60 #include "net/http/http_response_headers.h" 60 #include "net/http/http_response_headers.h"
61 #include "net/http/http_response_info.h" 61 #include "net/http/http_response_info.h"
62 #include "net/url_request/url_request_error_job.h" 62 #include "net/url_request/url_request_error_job.h"
63 #include "net/url_request/url_request_file_job.h" 63 #include "net/url_request/url_request_file_job.h"
64 #include "net/url_request/url_request_simple_job.h" 64 #include "net/url_request/url_request_simple_job.h"
65 #include "url/url_util.h" 65 #include "url/url_util.h"
66 66
67 using content::BrowserThread; 67 using content::BrowserThread;
68 using content::ResourceRequestInfo; 68 using content::ResourceRequestInfo;
69 using content::ResourceType;
70 using extensions::Extension; 69 using extensions::Extension;
71 using extensions::SharedModuleInfo; 70 using extensions::SharedModuleInfo;
72 71
73 namespace extensions { 72 namespace extensions {
74 namespace { 73 namespace {
75 74
76 ExtensionProtocolTestHandler* g_test_handler = nullptr; 75 ExtensionProtocolTestHandler* g_test_handler = nullptr;
77 76
78 class GeneratedBackgroundPageJob : public net::URLRequestSimpleJob { 77 class GeneratedBackgroundPageJob : public net::URLRequestSimpleJob {
79 public: 78 public:
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 extensions::InfoMap* extension_info_map) { 597 extensions::InfoMap* extension_info_map) {
599 return base::MakeUnique<ExtensionProtocolHandler>(is_incognito, 598 return base::MakeUnique<ExtensionProtocolHandler>(is_incognito,
600 extension_info_map); 599 extension_info_map);
601 } 600 }
602 601
603 void SetExtensionProtocolTestHandler(ExtensionProtocolTestHandler* handler) { 602 void SetExtensionProtocolTestHandler(ExtensionProtocolTestHandler* handler) {
604 g_test_handler = handler; 603 g_test_handler = handler;
605 } 604 }
606 605
607 } // namespace extensions 606 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698