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

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

Issue 1909773002: Convert //extensions/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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
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 #ifndef EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/memory/scoped_ptr.h"
11 #include "net/url_request/url_request_job_factory.h" 11 #include "net/url_request/url_request_job_factory.h"
12 12
13 namespace base { 13 namespace base {
14 class Time; 14 class Time;
15 } 15 }
16 16
17 namespace net { 17 namespace net {
18 class HttpResponseHeaders; 18 class HttpResponseHeaders;
19 } 19 }
20 20
21 namespace extensions { 21 namespace extensions {
22 22
23 class InfoMap; 23 class InfoMap;
24 24
25 // Builds HTTP headers for an extension request. Hashes the time to avoid 25 // Builds HTTP headers for an extension request. Hashes the time to avoid
26 // exposing the exact user installation time of the extension. 26 // exposing the exact user installation time of the extension.
27 net::HttpResponseHeaders* BuildHttpHeaders( 27 net::HttpResponseHeaders* BuildHttpHeaders(
28 const std::string& content_security_policy, 28 const std::string& content_security_policy,
29 bool send_cors_header, 29 bool send_cors_header,
30 const base::Time& last_modified_time); 30 const base::Time& last_modified_time);
31 31
32 // Creates the handlers for the chrome-extension:// scheme. Pass true for 32 // Creates the handlers for the chrome-extension:// scheme. Pass true for
33 // |is_incognito| only for incognito profiles and not for Chrome OS guest mode 33 // |is_incognito| only for incognito profiles and not for Chrome OS guest mode
34 // profiles. 34 // profiles.
35 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 35 std::unique_ptr<net::URLRequestJobFactory::ProtocolHandler>
36 CreateExtensionProtocolHandler(bool is_incognito, InfoMap* extension_info_map); 36 CreateExtensionProtocolHandler(bool is_incognito, InfoMap* extension_info_map);
37 37
38 } // namespace extensions 38 } // namespace extensions
39 39
40 #endif // EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_ 40 #endif // EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_prefs_factory.cc ('k') | extensions/browser/extension_protocols.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698