OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/dom_ui/remoting_ui.h" | 5 #include "chrome/browser/dom_ui/remoting_ui.h" |
6 | 6 |
7 #include "app/resource_bundle.h" | |
8 #include "base/singleton.h" | 7 #include "base/singleton.h" |
9 #include "chrome/browser/browser_thread.h" | 8 #include "chrome/browser/browser_thread.h" |
10 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 9 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
11 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
12 #include "grit/theme_resources.h" | 11 #include "grit/theme_resources.h" |
| 12 #include "ui/base/resource/resource_bundle.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 /////////////////////////////////////////////////////////////////////////////// | 16 /////////////////////////////////////////////////////////////////////////////// |
17 // | 17 // |
18 // RemotingHTMLSource | 18 // RemotingHTMLSource |
19 // | 19 // |
20 /////////////////////////////////////////////////////////////////////////////// | 20 /////////////////////////////////////////////////////////////////////////////// |
21 | 21 |
22 class RemotingUIHTMLSource : public ChromeURLDataManager::DataSource { | 22 class RemotingUIHTMLSource : public ChromeURLDataManager::DataSource { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 RefCountedMemory* RemotingUI::GetFaviconResourceBytes() { | 76 RefCountedMemory* RemotingUI::GetFaviconResourceBytes() { |
77 return ResourceBundle::GetSharedInstance(). | 77 return ResourceBundle::GetSharedInstance(). |
78 // TODO(garykac): Have custom remoting icon created. | 78 // TODO(garykac): Have custom remoting icon created. |
79 LoadDataResourceBytes(IDR_PLUGIN); | 79 LoadDataResourceBytes(IDR_PLUGIN); |
80 } | 80 } |
81 | 81 |
82 // static | 82 // static |
83 void RemotingUI::RegisterUserPrefs(PrefService* prefs) { | 83 void RemotingUI::RegisterUserPrefs(PrefService* prefs) { |
84 // TODO(garykac): Add remoting prefs (if needed). | 84 // TODO(garykac): Add remoting prefs (if needed). |
85 } | 85 } |
OLD | NEW |