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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_embedder_helper.h

Issue 11046002: Browser Plugin: Fixed browser process crash on embedder reload. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Alternative behavior to match Istiaque's previous implementation of NavigateGuest Created 8 years, 2 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
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 CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_ 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // Make it public for sync IPCs. 45 // Make it public for sync IPCs.
46 virtual bool Send(IPC::Message* message) OVERRIDE; 46 virtual bool Send(IPC::Message* message) OVERRIDE;
47 47
48 protected: 48 protected:
49 // RenderViewHostObserver implementation. 49 // RenderViewHostObserver implementation.
50 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 50 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
51 51
52 private: 52 private:
53 // Message handlers. 53 // Message handlers.
54 void OnCreateGuest(int instance_id,
55 const std::string& storage_partition_id,
56 bool persist_storage);
54 void OnNavigateGuest(int instance_id, 57 void OnNavigateGuest(int instance_id,
55 const std::string& src, 58 const std::string& src,
56 const BrowserPluginHostMsg_ResizeGuest_Params& params); 59 const BrowserPluginHostMsg_ResizeGuest_Params& params);
57 void OnResizeGuest(int instance_id, 60 void OnResizeGuest(int instance_id,
58 const BrowserPluginHostMsg_ResizeGuest_Params& params); 61 const BrowserPluginHostMsg_ResizeGuest_Params& params);
59 void OnUpdateRectACK(int instance_id, int message_id, const gfx::Size& size); 62 void OnUpdateRectACK(int instance_id, int message_id, const gfx::Size& size);
60 void OnHandleInputEvent(const IPC::SyncMessage& message, bool* handled); 63 void OnHandleInputEvent(const IPC::SyncMessage& message, bool* handled);
61 void OnSetFocus(int instance_id, bool focused); 64 void OnSetFocus(int instance_id, bool focused);
62 void OnPluginDestroyed(int instance_id); 65 void OnPluginDestroyed(int instance_id);
63 void OnGo(int instance_id, int relative_index); 66 void OnGo(int instance_id, int relative_index);
64 void OnStop(int instance_id); 67 void OnStop(int instance_id);
65 void OnReload(int instance_id); 68 void OnReload(int instance_id);
66 69
67 BrowserPluginEmbedder* embedder_; 70 BrowserPluginEmbedder* embedder_;
68 71
69 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedderHelper); 72 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedderHelper);
70 }; 73 };
71 74
72 } // namespace content 75 } // namespace content
73 76
74 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_ 77 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698