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

Side by Side Diff: chrome/service/cloud_print/cloud_print_proxy_backend.h

Issue 2110603002: Remove calls to MessageLoop::current() in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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) 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_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_ 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h"
13 #include "base/single_thread_task_runner.h"
12 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
13 #include "chrome/service/cloud_print/connector_settings.h" 15 #include "chrome/service/cloud_print/connector_settings.h"
14 #include "printing/backend/print_backend.h" 16 #include "printing/backend/print_backend.h"
15 17
16 namespace base { 18 namespace base {
17 class DictionaryValue; 19 class DictionaryValue;
18 } 20 }
19 21
20 namespace gaia { 22 namespace gaia {
21 struct OAuthClientInfo; 23 struct OAuthClientInfo;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // The real guts of SyncBackendHost, to keep the public client API clean. 86 // The real guts of SyncBackendHost, to keep the public client API clean.
85 class Core; 87 class Core;
86 88
87 // A thread dedicated for use to perform initialization and authentication. 89 // A thread dedicated for use to perform initialization and authentication.
88 base::Thread core_thread_; 90 base::Thread core_thread_;
89 91
90 // The core, which communicates with AuthWatcher for GAIA authentication and 92 // The core, which communicates with AuthWatcher for GAIA authentication and
91 // which contains printer registration code. 93 // which contains printer registration code.
92 scoped_refptr<Core> core_; 94 scoped_refptr<Core> core_;
93 95
94 // A reference to the MessageLoop used to construct |this|, so we know how 96 // A reference to the TaskRunner used to construct |this|, so we know how to
95 // to safely talk back to the SyncFrontend. 97 // safely talk back to the SyncFrontend.
96 base::MessageLoop* const frontend_loop_; 98 const scoped_refptr<base::SingleThreadTaskRunner> frontend_task_runner_;
97 99
98 // The frontend which is responsible for displaying UI and updating Prefs. 100 // The frontend which is responsible for displaying UI and updating Prefs.
99 // Outlives this backend. 101 // Outlives this backend.
100 CloudPrintProxyFrontend* const frontend_; 102 CloudPrintProxyFrontend* const frontend_;
101 103
102 friend class base::RefCountedThreadSafe<CloudPrintProxyBackend::Core>; 104 friend class base::RefCountedThreadSafe<CloudPrintProxyBackend::Core>;
103 105
104 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyBackend); 106 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyBackend);
105 }; 107 };
106 108
107 } // namespace cloud_print 109 } // namespace cloud_print
108 110
109 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_ 111 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_
OLDNEW
« no previous file with comments | « chrome/browser/process_singleton_posix.cc ('k') | chrome/service/cloud_print/cloud_print_proxy_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698