| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 virtual MessageLoop* MessageLoopForRequestPath( | 31 virtual MessageLoop* MessageLoopForRequestPath( |
| 32 const std::string& path) const OVERRIDE; | 32 const std::string& path) const OVERRIDE; |
| 33 | 33 |
| 34 virtual bool ShouldReplaceExistingSource() const OVERRIDE; | 34 virtual bool ShouldReplaceExistingSource() const OVERRIDE; |
| 35 | 35 |
| 36 protected: | 36 protected: |
| 37 virtual ~ThemeSource(); | 37 virtual ~ThemeSource(); |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 // Fetch and send the theme bitmap. | 40 // Fetch and send the theme bitmap. |
| 41 void SendThemeBitmap(int request_id, int resource_id); | 41 void SendThemeBitmap(int request_id, int resource_id, float scale_factor); |
| 42 | 42 |
| 43 // The original profile (never an OTR profile). | 43 // The original profile (never an OTR profile). |
| 44 Profile* profile_; | 44 Profile* profile_; |
| 45 | 45 |
| 46 // We grab the CSS early so we don't have to go back to the UI thread later. | 46 // We grab the CSS early so we don't have to go back to the UI thread later. |
| 47 scoped_refptr<base::RefCountedMemory> css_bytes_; | 47 scoped_refptr<base::RefCountedMemory> css_bytes_; |
| 48 | 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(ThemeSource); | 49 DISALLOW_COPY_AND_ASSIGN(ThemeSource); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 #endif // CHROME_BROWSER_UI_WEBUI_THEME_SOURCE_H_ | 52 #endif // CHROME_BROWSER_UI_WEBUI_THEME_SOURCE_H_ |
| OLD | NEW |