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

Side by Side Diff: remoting/host/policy_hack/fake_policy_watcher.h

Issue 830193002: Using PolicyServiceWatcher instead of PolicyWatcherLinux/Win/Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 11 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
« no previous file with comments | « remoting/host/BUILD.gn ('k') | remoting/host/policy_hack/fake_policy_watcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 REMOTING_HOST_POLICY_HACK_FAKE_POLICY_WATCHER_H_ 5 #ifndef REMOTING_HOST_POLICY_HACK_FAKE_POLICY_WATCHER_H_
6 #define REMOTING_HOST_POLICY_HACK_FAKE_POLICY_WATCHER_H_ 6 #define REMOTING_HOST_POLICY_HACK_FAKE_POLICY_WATCHER_H_
7 7
8 #include "remoting/host/policy_hack/policy_watcher.h" 8 #include "remoting/host/policy_hack/policy_watcher.h"
9 9
10 namespace remoting { 10 namespace remoting {
11 namespace policy_hack { 11 namespace policy_hack {
12 12
13 class FakePolicyWatcher : public PolicyWatcher { 13 class FakePolicyWatcher : public PolicyWatcher {
14 public: 14 public:
15 explicit FakePolicyWatcher( 15 explicit FakePolicyWatcher(
16 scoped_refptr<base::SingleThreadTaskRunner> task_runner); 16 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
17 ~FakePolicyWatcher() override; 17 ~FakePolicyWatcher() override;
18 18
19 void SetPolicies(const base::DictionaryValue* policies); 19 void SetPolicies(const base::DictionaryValue* policies);
20 20
21 void SignalTransientErrorForTest(); 21 void SignalTransientErrorForTest();
22 22
23 protected: 23 protected:
24 void StartWatchingInternal() override; 24 void StartWatchingInternal() override;
25 void StopWatchingInternal() override; 25 void StopWatchingInternal() override;
26 void Reload() override;
27 }; 26 };
28 27
29 } // namespace policy_hack 28 } // namespace policy_hack
30 } // namespace remoting 29 } // namespace remoting
31 30
32 #endif // REMOTING_HOST_POLICY_HACK_FAKE_POLICY_WATCHER_H_ 31 #endif // REMOTING_HOST_POLICY_HACK_FAKE_POLICY_WATCHER_H_
OLDNEW
« no previous file with comments | « remoting/host/BUILD.gn ('k') | remoting/host/policy_hack/fake_policy_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698