Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: chrome/browser/remoting/remoting_setup_flow.cc

Issue 3660002: Rename ChromeThread to BrowserThread Part13: (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/remoting/remoting_setup_flow.h" 5 #include "chrome/browser/remoting/remoting_setup_flow.h"
6 6
7 #include "app/gfx/font_util.h" 7 #include "app/gfx/font_util.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/singleton.h" 9 #include "base/singleton.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 public: 45 public:
46 explicit RemotingServiceProcessHelper(RemotingSetupFlow* flow) 46 explicit RemotingServiceProcessHelper(RemotingSetupFlow* flow)
47 : flow_(flow) { 47 : flow_(flow) {
48 } 48 }
49 49
50 void Detach() { 50 void Detach() {
51 flow_ = NULL; 51 flow_ = NULL;
52 } 52 }
53 53
54 void OnProcessLaunched() { 54 void OnProcessLaunched() {
55 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI)); 55 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
56 // If the flow is detached then show the done page. 56 // If the flow is detached then show the done page.
57 if (!flow_) 57 if (!flow_)
58 return; 58 return;
59 59
60 flow_->OnProcessLaunched(); 60 flow_->OnProcessLaunched();
61 } 61 }
62 62
63 private: 63 private:
64 RemotingSetupFlow* flow_; 64 RemotingSetupFlow* flow_;
65 65
(...skipping 26 matching lines...) Expand all
92 b->BrowserShowHtmlDialog(flow, NULL); 92 b->BrowserShowHtmlDialog(flow, NULL);
93 return flow; 93 return flow;
94 } 94 }
95 95
96 RemotingSetupFlow::RemotingSetupFlow(const std::string& args, Profile* profile) 96 RemotingSetupFlow::RemotingSetupFlow(const std::string& args, Profile* profile)
97 : dom_ui_(NULL), 97 : dom_ui_(NULL),
98 dialog_start_args_(args), 98 dialog_start_args_(args),
99 profile_(profile), 99 profile_(profile),
100 process_control_(NULL) { 100 process_control_(NULL) {
101 // TODO(hclam): The data source should be added once. 101 // TODO(hclam): The data source should be added once.
102 ChromeThread::PostTask( 102 BrowserThread::PostTask(
103 ChromeThread::IO, FROM_HERE, 103 BrowserThread::IO, FROM_HERE,
104 NewRunnableMethod(Singleton<ChromeURLDataManager>::get(), 104 NewRunnableMethod(Singleton<ChromeURLDataManager>::get(),
105 &ChromeURLDataManager::AddDataSource, 105 &ChromeURLDataManager::AddDataSource,
106 make_scoped_refptr(new RemotingResourcesSource()))); 106 make_scoped_refptr(new RemotingResourcesSource())));
107 } 107 }
108 108
109 RemotingSetupFlow::~RemotingSetupFlow() { 109 RemotingSetupFlow::~RemotingSetupFlow() {
110 } 110 }
111 111
112 void RemotingSetupFlow::Focus() { 112 void RemotingSetupFlow::Focus() {
113 // TODO(pranavk): implement this method. 113 // TODO(pranavk): implement this method.
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 } 303 }
304 304
305 void RemotingSetupFlow::ExecuteJavascriptInIFrame( 305 void RemotingSetupFlow::ExecuteJavascriptInIFrame(
306 const std::wstring& iframe_xpath, 306 const std::wstring& iframe_xpath,
307 const std::wstring& js) { 307 const std::wstring& js) {
308 if (dom_ui_) { 308 if (dom_ui_) {
309 RenderViewHost* rvh = dom_ui_->tab_contents()->render_view_host(); 309 RenderViewHost* rvh = dom_ui_->tab_contents()->render_view_host();
310 rvh->ExecuteJavascriptInWebFrame(iframe_xpath, js); 310 rvh->ExecuteJavascriptInWebFrame(iframe_xpath, js);
311 } 311 }
312 } 312 }
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_value_store_unittest.cc ('k') | chrome/browser/search_engines/search_provider_install_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698