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

Side by Side Diff: chrome/plugin/command_buffer_stub.h

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/nacl/nacl_thread.cc ('k') | chrome/plugin/command_buffer_stub.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_PLUGIN_COMMAND_BUFFER_STUB_H_ 5 #ifndef CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_
6 #define CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ 6 #define CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 13 matching lines...) Expand all
24 class CommandBufferStub : public IPC::Channel::Listener, 24 class CommandBufferStub : public IPC::Channel::Listener,
25 public IPC::Message::Sender { 25 public IPC::Message::Sender {
26 public: 26 public:
27 CommandBufferStub(PluginChannel* channel, 27 CommandBufferStub(PluginChannel* channel,
28 int plugin_host_route_id, 28 int plugin_host_route_id,
29 gfx::PluginWindowHandle window); 29 gfx::PluginWindowHandle window);
30 30
31 virtual ~CommandBufferStub(); 31 virtual ~CommandBufferStub();
32 32
33 // IPC::Channel::Listener implementation: 33 // IPC::Channel::Listener implementation:
34 virtual void OnMessageReceived(const IPC::Message& message); 34 virtual bool OnMessageReceived(const IPC::Message& message);
35 virtual void OnChannelError(); 35 virtual void OnChannelError();
36 36
37 // IPC::Message::Sender implementation: 37 // IPC::Message::Sender implementation:
38 virtual bool Send(IPC::Message* msg); 38 virtual bool Send(IPC::Message* msg);
39 39
40 int route_id() const { return route_id_; } 40 int route_id() const { return route_id_; }
41 41
42 // Notify the client that it must repaint due to the window becoming invalid 42 // Notify the client that it must repaint due to the window becoming invalid
43 // or a lost context. 43 // or a lost context.
44 void NotifyRepaint(); 44 void NotifyRepaint();
(...skipping 28 matching lines...) Expand all
73 int plugin_host_route_id_; 73 int plugin_host_route_id_;
74 gfx::PluginWindowHandle window_; 74 gfx::PluginWindowHandle window_;
75 int route_id_; 75 int route_id_;
76 scoped_ptr<gpu::CommandBufferService> command_buffer_; 76 scoped_ptr<gpu::CommandBufferService> command_buffer_;
77 scoped_ptr<gpu::GPUProcessor> processor_; 77 scoped_ptr<gpu::GPUProcessor> processor_;
78 }; 78 };
79 79
80 #endif // ENABLE_GPU 80 #endif // ENABLE_GPU
81 81
82 #endif // CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ 82 #endif // CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « chrome/nacl/nacl_thread.cc ('k') | chrome/plugin/command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698