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

Side by Side Diff: chrome/browser/extensions/api/messaging/arc_opt_in_host.h

Issue 1681813003: arc: Use incognito profile for OptIn and cookie fetcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 10 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_MESSAGING_ARC_OPT_IN_HOST_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_MESSAGING_ARC_OPT_IN_HOST_H_
7
8 #include "base/macros.h"
9 #include "base/thread_task_runner_handle.h"
xiyuan 2016/02/11 17:57:20 move to cc file?
khmel 2016/02/12 02:45:23 Done.
10 #include "chrome/browser/chromeos/arc/arc_auth_service.h"
11 #include "extensions/browser/api/messaging/native_message_host.h"
12
13 // Supports communication with Arc OptIn dialog.
14 class ArcOptInHost : public extensions::NativeMessageHost,
15 public arc::ArcAuthService::Observer {
16 public:
17 static const char kHostName[];
18 static const char* const kHostOrigin[];
19
20 static scoped_ptr<NativeMessageHost> Create() {
21 return scoped_ptr<NativeMessageHost>(new ArcOptInHost());
xiyuan 2016/02/11 17:57:20 Move impl to cc file.
khmel 2016/02/12 02:45:23 Done.
22 }
23
24 ~ArcOptInHost() override;
25
26 // Overrides NativeMessageHost:
27 void Start(Client* client) override;
28 void OnMessage(const std::string& request_string) override;
29 scoped_refptr<base::SingleThreadTaskRunner> task_runner() const override;
30
31 // Overrides arc::ArcAuthService::Observer:
32 void OnOptInUINeedToClose() override;
33
34 private:
35 // Unowned pointer.
36 Client* client_ = nullptr;
37
38 ArcOptInHost();
39
40 DISALLOW_COPY_AND_ASSIGN(ArcOptInHost);
41 };
42
43 #endif // CHROME_BROWSER_EXTENSIONS_API_MESSAGING_ARC_OPT_IN_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698