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

Side by Side Diff: chrome/service/cloud_print/cloud_print_proxy.cc

Issue 5955001: Remove chromoting host registration from service process. More IPCs to control (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merges Created 9 years, 12 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 | Annotate | Revision Log
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/service/cloud_print/cloud_print_proxy.h" 5 #include "chrome/service/cloud_print/cloud_print_proxy.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/common/chrome_switches.h" 11 #include "chrome/common/chrome_switches.h"
12 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
13 #include "chrome/service/cloud_print/cloud_print_consts.h" 13 #include "chrome/service/cloud_print/cloud_print_consts.h"
14 #include "chrome/service/cloud_print/print_system.h" 14 #include "chrome/service/cloud_print/print_system.h"
15 #include "chrome/service/service_process.h" 15 #include "chrome/service/service_process.h"
16 #include "chrome/service/service_process_prefs.h" 16 #include "chrome/service/service_process_prefs.h"
17 #include "googleurl/src/gurl.h"
17 18
18 // This method is invoked on the IO thread to launch the browser process to 19 // This method is invoked on the IO thread to launch the browser process to
19 // display a desktop notification that the Cloud Print token is invalid and 20 // display a desktop notification that the Cloud Print token is invalid and
20 // needs re-authentication. 21 // needs re-authentication.
21 static void ShowTokenExpiredNotificationInBrowser() { 22 static void ShowTokenExpiredNotificationInBrowser() {
22 DCHECK(g_service_process->io_thread()->message_loop_proxy()-> 23 DCHECK(g_service_process->io_thread()->message_loop_proxy()->
23 BelongsToCurrentThread()); 24 BelongsToCurrentThread());
24 FilePath exe_path; 25 FilePath exe_path;
25 PathService::Get(base::FILE_EXE, &exe_path); 26 PathService::Get(base::FILE_EXE, &exe_path);
26 if (exe_path.empty()) { 27 if (exe_path.empty()) {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 g_service_process->io_thread()->message_loop_proxy()->PostTask( 160 g_service_process->io_thread()->message_loop_proxy()->PostTask(
160 FROM_HERE, NewRunnableFunction(&ShowTokenExpiredNotificationInBrowser)); 161 FROM_HERE, NewRunnableFunction(&ShowTokenExpiredNotificationInBrowser));
161 } 162 }
162 163
163 void CloudPrintProxy::Shutdown() { 164 void CloudPrintProxy::Shutdown() {
164 DCHECK(CalledOnValidThread()); 165 DCHECK(CalledOnValidThread());
165 if (backend_.get()) 166 if (backend_.get())
166 backend_->Shutdown(); 167 backend_->Shutdown();
167 backend_.reset(); 168 backend_.reset();
168 } 169 }
OLDNEW
« no previous file with comments | « chrome/common/service_messages_internal.h ('k') | chrome/service/remoting/chromoting_host_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698