OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_WEBUI_THEME_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_THEME_SOURCE_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_THEME_SOURCE_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_THEME_SOURCE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "content/public/browser/url_data_source.h" | 13 #include "content/public/browser/url_data_source.h" |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 | 16 |
17 namespace base { | |
18 class RefCountedMemory; | |
19 } | |
20 | |
21 class ThemeSource : public content::URLDataSource { | 17 class ThemeSource : public content::URLDataSource { |
22 public: | 18 public: |
23 explicit ThemeSource(Profile* profile); | 19 explicit ThemeSource(Profile* profile); |
24 ~ThemeSource() override; | 20 ~ThemeSource() override; |
25 | 21 |
26 // content::URLDataSource implementation. | 22 // content::URLDataSource implementation. |
27 std::string GetSource() const override; | 23 std::string GetSource() const override; |
28 void StartDataRequest( | 24 void StartDataRequest( |
29 const std::string& path, | 25 const std::string& path, |
30 const content::ResourceRequestInfo::WebContentsGetter& wc_getter, | 26 const content::ResourceRequestInfo::WebContentsGetter& wc_getter, |
(...skipping 16 matching lines...) Expand all Loading... |
47 int resource_id, | 43 int resource_id, |
48 float scale); | 44 float scale); |
49 | 45 |
50 // The profile this object was initialized with. | 46 // The profile this object was initialized with. |
51 Profile* profile_; | 47 Profile* profile_; |
52 | 48 |
53 DISALLOW_COPY_AND_ASSIGN(ThemeSource); | 49 DISALLOW_COPY_AND_ASSIGN(ThemeSource); |
54 }; | 50 }; |
55 | 51 |
56 #endif // CHROME_BROWSER_UI_WEBUI_THEME_SOURCE_H_ | 52 #endif // CHROME_BROWSER_UI_WEBUI_THEME_SOURCE_H_ |
OLD | NEW |