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

Side by Side Diff: chrome/plugin/plugin_thread.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 9 years, 12 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 | Annotate | Revision Log
« no previous file with comments | « chrome/plugin/plugin_channel_base.cc ('k') | chrome/plugin/plugin_thread.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_PLUGIN_THREAD_H_ 5 #ifndef CHROME_PLUGIN_PLUGIN_THREAD_H_
6 #define CHROME_PLUGIN_PLUGIN_THREAD_H_ 6 #define CHROME_PLUGIN_PLUGIN_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/native_library.h" 10 #include "base/native_library.h"
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 PluginThread(); 25 PluginThread();
26 ~PluginThread(); 26 ~PluginThread();
27 27
28 // Returns the one plugin thread. 28 // Returns the one plugin thread.
29 static PluginThread* current(); 29 static PluginThread* current();
30 30
31 FilePath plugin_path() { return plugin_path_; } 31 FilePath plugin_path() { return plugin_path_; }
32 32
33 private: 33 private:
34 virtual void OnControlMessageReceived(const IPC::Message& msg); 34 virtual bool OnControlMessageReceived(const IPC::Message& msg);
35 35
36 // Callback for when a channel has been created. 36 // Callback for when a channel has been created.
37 void OnCreateChannel(int renderer_id, bool off_the_record); 37 void OnCreateChannel(int renderer_id, bool off_the_record);
38 void OnPluginMessage(const std::vector<uint8> &data); 38 void OnPluginMessage(const std::vector<uint8> &data);
39 void OnNotifyRenderersOfPendingShutdown(); 39 void OnNotifyRenderersOfPendingShutdown();
40 #if defined(OS_MACOSX) 40 #if defined(OS_MACOSX)
41 void OnAppActivated(); 41 void OnAppActivated();
42 void OnPluginFocusNotify(uint32 instance_id); 42 void OnPluginFocusNotify(uint32 instance_id);
43 #endif 43 #endif
44 44
45 // The plugin module which is preloaded in Init 45 // The plugin module which is preloaded in Init
46 base::NativeLibrary preloaded_plugin_module_; 46 base::NativeLibrary preloaded_plugin_module_;
47 47
48 // Points to the plugin file that this process hosts. 48 // Points to the plugin file that this process hosts.
49 FilePath plugin_path_; 49 FilePath plugin_path_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(PluginThread); 51 DISALLOW_COPY_AND_ASSIGN(PluginThread);
52 }; 52 };
53 53
54 #endif // CHROME_PLUGIN_PLUGIN_THREAD_H_ 54 #endif // CHROME_PLUGIN_PLUGIN_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/plugin/plugin_channel_base.cc ('k') | chrome/plugin/plugin_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698