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

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

Issue 229733002: Toro: Move ExtensionProtocolHandler to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move file, cleanup (extension-protocols) Created 6 years, 8 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) 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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PROTOCOLS_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROTOCOLS_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_
7 7
8 #include "chrome/browser/profiles/profile.h" 8 #include <string>
9
9 #include "net/url_request/url_request_job_factory.h" 10 #include "net/url_request/url_request_job_factory.h"
10 11
11 namespace extensions { 12 namespace base {
12 class InfoMap; 13 class Time;
13 } 14 }
14 15
15 // Creates the handlers for the chrome-extension:// scheme. 16 namespace net {
17 class HttpResponseHeaders;
18 }
19
20 namespace extensions {
21
22 class InfoMap;
23
24 // Builds HTTP headers for an extension request. Hashes the time to avoid
25 // exposing the exact user installation time of the extension.
26 net::HttpResponseHeaders* BuildHttpHeaders(
27 const std::string& content_security_policy,
28 bool send_cors_header,
29 const base::Time& last_modified_time);
30
31 // Creates the handlers for the chrome-extension:// scheme. Pass true for
32 // |is_incognito| only for incognito profiles and not for Chrome OS guest mode
33 // profiles.
16 net::URLRequestJobFactory::ProtocolHandler* CreateExtensionProtocolHandler( 34 net::URLRequestJobFactory::ProtocolHandler* CreateExtensionProtocolHandler(
17 Profile::ProfileType profile_type, 35 bool is_incognito,
18 extensions::InfoMap* extension_info_map); 36 extensions::InfoMap* extension_info_map);
19 37
20 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROTOCOLS_H_ 38 } // namespace extensions
39
40 #endif // EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698