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

Side by Side Diff: extensions/browser/guest_view/extensions_guest_view_message_filter.h

Issue 972313002: Make <webview> use out-of-process iframe architecture. (Closed) Base URL: ssh://saopaulo.wat/mnt/dev/shared/src@testoopif2z-better-chrome
Patch Set: add basic postMessage test Created 5 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_MESSAGE_FILTER_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_MESSAGE_FILTER_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_MESSAGE_FILTER_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_MESSAGE_FILTER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 25 matching lines...) Expand all
36 36
37 ~ExtensionsGuestViewMessageFilter() override; 37 ~ExtensionsGuestViewMessageFilter() override;
38 38
39 // content::BrowserMessageFilter implementation. 39 // content::BrowserMessageFilter implementation.
40 void OverrideThreadForMessage(const IPC::Message& message, 40 void OverrideThreadForMessage(const IPC::Message& message,
41 content::BrowserThread::ID* thread) override; 41 content::BrowserThread::ID* thread) override;
42 void OnDestruct() const override; 42 void OnDestruct() const override;
43 bool OnMessageReceived(const IPC::Message& message) override; 43 bool OnMessageReceived(const IPC::Message& message) override;
44 44
45 // Message handlers on the UI thread. 45 // Message handlers on the UI thread.
46 void OnAttachToEmbedderFrame(int embedder_local_render_frame_id,
47 int element_instance_id,
48 int guest_instance_id);
46 void OnCanExecuteContentScript(int render_view_id, 49 void OnCanExecuteContentScript(int render_view_id,
47 int script_id, 50 int script_id,
48 bool* allowed); 51 bool* allowed);
49 52
50 void OnCreateMimeHandlerViewGuest(int render_frame_id, 53 void OnCreateMimeHandlerViewGuest(int render_frame_id,
51 const std::string& view_id, 54 const std::string& view_id,
52 int element_instance_id, 55 int element_instance_id,
53 const gfx::Size& element_size); 56 const gfx::Size& element_size);
54 void OnResizeGuest(int render_frame_id, 57 void OnResizeGuest(int render_frame_id,
55 int element_instance_id, 58 int element_instance_id,
(...skipping 13 matching lines...) Expand all
69 72
70 // Weak pointers produced by this factory are bound to the IO thread. 73 // Weak pointers produced by this factory are bound to the IO thread.
71 base::WeakPtrFactory<ExtensionsGuestViewMessageFilter> weak_ptr_factory_; 74 base::WeakPtrFactory<ExtensionsGuestViewMessageFilter> weak_ptr_factory_;
72 75
73 DISALLOW_COPY_AND_ASSIGN(ExtensionsGuestViewMessageFilter); 76 DISALLOW_COPY_AND_ASSIGN(ExtensionsGuestViewMessageFilter);
74 }; 77 };
75 78
76 } // namespace extensions 79 } // namespace extensions
77 80
78 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_MESSAGE_FILTER_H_ 81 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698