Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / extensions / browser / extension_protocols.h
blob190b50fca2bf99c27a4967d4dc8e89dba5d28505
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
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_
8 #include <string>
10 #include "base/memory/scoped_ptr.h"
11 #include "net/url_request/url_request_job_factory.h"
13 namespace base {
14 class Time;
17 namespace net {
18 class HttpResponseHeaders;
21 namespace extensions {
23 class InfoMap;
25 // Builds HTTP headers for an extension request. Hashes the time to avoid
26 // exposing the exact user installation time of the extension.
27 net::HttpResponseHeaders* BuildHttpHeaders(
28 const std::string& content_security_policy,
29 bool send_cors_header,
30 const base::Time& last_modified_time);
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
34 // profiles.
35 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
36 CreateExtensionProtocolHandler(bool is_incognito, InfoMap* extension_info_map);
38 } // namespace extensions
40 #endif // EXTENSIONS_BROWSER_EXTENSION_PROTOCOLS_H_