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 #include "chrome/service/service_process.h" | 5 #include "chrome/service/service_process.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 const int64 kPolicyCheckDelayHours = 8; | 53 const int64 kPolicyCheckDelayHours = 8; |
54 | 54 |
55 const char kDefaultServiceProcessLocale[] = "en-US"; | 55 const char kDefaultServiceProcessLocale[] = "en-US"; |
56 | 56 |
57 class ServiceIOThread : public base::Thread { | 57 class ServiceIOThread : public base::Thread { |
58 public: | 58 public: |
59 explicit ServiceIOThread(const char* name); | 59 explicit ServiceIOThread(const char* name); |
60 virtual ~ServiceIOThread(); | 60 virtual ~ServiceIOThread(); |
61 | 61 |
62 protected: | 62 protected: |
63 virtual void CleanUp(); | 63 virtual void CleanUp() OVERRIDE; |
64 | 64 |
65 private: | 65 private: |
66 DISALLOW_COPY_AND_ASSIGN(ServiceIOThread); | 66 DISALLOW_COPY_AND_ASSIGN(ServiceIOThread); |
67 }; | 67 }; |
68 | 68 |
69 ServiceIOThread::ServiceIOThread(const char* name) : base::Thread(name) {} | 69 ServiceIOThread::ServiceIOThread(const char* name) : base::Thread(name) {} |
70 ServiceIOThread::~ServiceIOThread() { | 70 ServiceIOThread::~ServiceIOThread() { |
71 Stop(); | 71 Stop(); |
72 } | 72 } |
73 | 73 |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 if (enabled_services_ && !ipc_server_->is_client_connected()) { | 365 if (enabled_services_ && !ipc_server_->is_client_connected()) { |
366 GetCloudPrintProxy()->CheckCloudPrintProxyPolicy(); | 366 GetCloudPrintProxy()->CheckCloudPrintProxyPolicy(); |
367 } | 367 } |
368 ScheduleCloudPrintPolicyCheck(); | 368 ScheduleCloudPrintPolicyCheck(); |
369 } | 369 } |
370 | 370 |
371 ServiceProcess::~ServiceProcess() { | 371 ServiceProcess::~ServiceProcess() { |
372 Teardown(); | 372 Teardown(); |
373 g_service_process = NULL; | 373 g_service_process = NULL; |
374 } | 374 } |
OLD | NEW |