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

Side by Side Diff: content/browser/webui/shared_resources_data_source.h

Issue 2931983002: Mojo JS bindings: specify compress="gzip" for bindings JS files in .grd. (Closed)
Patch Set: . Created 3 years, 6 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
« no previous file with comments | « no previous file | content/browser/webui/shared_resources_data_source.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_BROWSER_WEBUI_SHARED_RESOURCES_DATA_SOURCE_H_ 5 #ifndef CONTENT_BROWSER_WEBUI_SHARED_RESOURCES_DATA_SOURCE_H_
6 #define CONTENT_BROWSER_WEBUI_SHARED_RESOURCES_DATA_SOURCE_H_ 6 #define CONTENT_BROWSER_WEBUI_SHARED_RESOURCES_DATA_SOURCE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 11 matching lines...) Expand all
22 void StartDataRequest( 22 void StartDataRequest(
23 const std::string& path, 23 const std::string& path,
24 const ResourceRequestInfo::WebContentsGetter& wc_getter, 24 const ResourceRequestInfo::WebContentsGetter& wc_getter,
25 const URLDataSource::GotDataCallback& callback) override; 25 const URLDataSource::GotDataCallback& callback) override;
26 bool AllowCaching() const override; 26 bool AllowCaching() const override;
27 std::string GetMimeType(const std::string& path) const override; 27 std::string GetMimeType(const std::string& path) const override;
28 scoped_refptr<base::SingleThreadTaskRunner> TaskRunnerForRequestPath( 28 scoped_refptr<base::SingleThreadTaskRunner> TaskRunnerForRequestPath(
29 const std::string& path) const override; 29 const std::string& path) const override;
30 std::string GetAccessControlAllowOriginForOrigin( 30 std::string GetAccessControlAllowOriginForOrigin(
31 const std::string& origin) const override; 31 const std::string& origin) const override;
32 bool IsGzipped(const std::string& path) const override;
32 33
33 private: 34 private:
34 ~SharedResourcesDataSource() override; 35 ~SharedResourcesDataSource() override;
35 36
36 DISALLOW_COPY_AND_ASSIGN(SharedResourcesDataSource); 37 DISALLOW_COPY_AND_ASSIGN(SharedResourcesDataSource);
37 }; 38 };
38 39
39 } // namespace content 40 } // namespace content
40 41
41 #endif // CONTENT_BROWSER_WEBUI_SHARED_RESOURCES_DATA_SOURCE_H_ 42 #endif // CONTENT_BROWSER_WEBUI_SHARED_RESOURCES_DATA_SOURCE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/webui/shared_resources_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698