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 "base/single_thread_task_runner.h" |
13 #include "content/public/browser/url_data_source.h" | 14 #include "content/public/browser/url_data_source.h" |
14 | 15 |
15 class Profile; | 16 class Profile; |
16 | 17 |
17 class ThemeSource : public content::URLDataSource { | 18 class ThemeSource : public content::URLDataSource { |
18 public: | 19 public: |
19 explicit ThemeSource(Profile* profile); | 20 explicit ThemeSource(Profile* profile); |
20 ~ThemeSource() override; | 21 ~ThemeSource() override; |
21 | 22 |
22 // content::URLDataSource implementation. | 23 // content::URLDataSource implementation. |
(...skipping 23 matching lines...) Expand all Loading... |
46 int resource_id, | 47 int resource_id, |
47 float scale); | 48 float scale); |
48 | 49 |
49 // The profile this object was initialized with. | 50 // The profile this object was initialized with. |
50 Profile* profile_; | 51 Profile* profile_; |
51 | 52 |
52 DISALLOW_COPY_AND_ASSIGN(ThemeSource); | 53 DISALLOW_COPY_AND_ASSIGN(ThemeSource); |
53 }; | 54 }; |
54 | 55 |
55 #endif // CHROME_BROWSER_UI_WEBUI_THEME_SOURCE_H_ | 56 #endif // CHROME_BROWSER_UI_WEBUI_THEME_SOURCE_H_ |
OLD | NEW |