| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |