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

Side by Side Diff: chrome/browser/renderer_host/pepper/pepper_talk_host.h

Issue 17043006: Implement supporting UI HRD-on-ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win_aura break. Use remoting tray UI only within ChromeOS. Created 7 years, 6 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_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TALK_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TALK_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TALK_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TALK_HOST_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "ppapi/c/private/ppb_talk_private.h" 9 #include "ppapi/c/private/ppb_talk_private.h"
10 #include "ppapi/host/resource_host.h" 10 #include "ppapi/host/resource_host.h"
(...skipping 11 matching lines...) Expand all
22 22
23 namespace chrome { 23 namespace chrome {
24 24
25 class PepperTalkHost : public ppapi::host::ResourceHost { 25 class PepperTalkHost : public ppapi::host::ResourceHost {
26 public: 26 public:
27 PepperTalkHost(content::BrowserPpapiHost* host, 27 PepperTalkHost(content::BrowserPpapiHost* host,
28 PP_Instance instance, 28 PP_Instance instance,
29 PP_Resource resource); 29 PP_Resource resource);
30 virtual ~PepperTalkHost(); 30 virtual ~PepperTalkHost();
31 31
32 private:
32 // ResourceHost override. 33 // ResourceHost override.
33 virtual int32_t OnResourceMessageReceived( 34 virtual int32_t OnResourceMessageReceived(
34 const IPC::Message& msg, 35 const IPC::Message& msg,
35 ppapi::host::HostMessageContext* context) OVERRIDE; 36 ppapi::host::HostMessageContext* context) OVERRIDE;
36 37
37 // Sends the reply. 38 int32_t OnRequestPermission(ppapi::host::HostMessageContext* context,
38 void GotTalkPermission(ppapi::host::ReplyMessageContext reply); 39 PP_TalkPermission permission);
40 int32_t OnStartRemoting(ppapi::host::HostMessageContext* context);
41 int32_t OnStopRemoting(ppapi::host::HostMessageContext* context);
42 void OnRemotingStopEvent();
39 43
40 private: 44 void OnRequestPermissionCompleted(ppapi::host::ReplyMessageContext reply);
41 int32_t OnRequestPermission( 45 void OnStartRemotingCompleted(ppapi::host::ReplyMessageContext reply);
42 ppapi::host::HostMessageContext* context, 46 void OnStopRemotingCompleted(ppapi::host::ReplyMessageContext reply);
43 PP_TalkPermission permission);
44 int32_t OnStartRemoting(
45 ppapi::host::HostMessageContext* context);
46 int32_t OnStopRemoting(
47 ppapi::host::HostMessageContext* context);
48 47
49 base::WeakPtrFactory<PepperTalkHost> weak_factory_; 48 base::WeakPtrFactory<PepperTalkHost> weak_factory_;
50 content::BrowserPpapiHost* browser_ppapi_host_; 49 content::BrowserPpapiHost* browser_ppapi_host_;
50 bool remoting_started_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(PepperTalkHost); 52 DISALLOW_COPY_AND_ASSIGN(PepperTalkHost);
53 }; 53 };
54 54
55 } // namespace chrome 55 } // namespace chrome
56 56
57 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TALK_HOST_H_ 57 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TALK_HOST_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/renderer_host/pepper/pepper_talk_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698