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

Side by Side Diff: extensions/browser/extension_message_filter.h

Issue 880123002: Move GuestView IPCs out of ExtensionMessageFilter to GuestViewMessageFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed AppShell Created 5 years, 11 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
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/extension_message_filter.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_EXTENSION_MESSAGE_FILTER_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 // Message handlers on the UI thread. 58 // Message handlers on the UI thread.
59 void OnExtensionAddListener(const std::string& extension_id, 59 void OnExtensionAddListener(const std::string& extension_id,
60 const GURL& listener_url, 60 const GURL& listener_url,
61 const std::string& event_name); 61 const std::string& event_name);
62 void OnExtensionRemoveListener(const std::string& extension_id, 62 void OnExtensionRemoveListener(const std::string& extension_id,
63 const GURL& listener_url, 63 const GURL& listener_url,
64 const std::string& event_name); 64 const std::string& event_name);
65 void OnExtensionAddLazyListener(const std::string& extension_id, 65 void OnExtensionAddLazyListener(const std::string& extension_id,
66 const std::string& event_name); 66 const std::string& event_name);
67 void OnExtensionAttachGuest(int routing_id,
68 int element_instance_id,
69 int guest_instance_id,
70 const base::DictionaryValue& attach_params);
71 void OnExtensionCreateMimeHandlerViewGuest(int render_frame_id, 67 void OnExtensionCreateMimeHandlerViewGuest(int render_frame_id,
72 const std::string& view_id, 68 const std::string& view_id,
73 int element_instance_id, 69 int element_instance_id,
74 const gfx::Size& element_size); 70 const gfx::Size& element_size);
75 void OnExtensionRemoveLazyListener(const std::string& extension_id, 71 void OnExtensionRemoveLazyListener(const std::string& extension_id,
76 const std::string& event_name); 72 const std::string& event_name);
77 void OnExtensionAddFilteredListener(const std::string& extension_id, 73 void OnExtensionAddFilteredListener(const std::string& extension_id,
78 const std::string& event_name, 74 const std::string& event_name,
79 const base::DictionaryValue& filter, 75 const base::DictionaryValue& filter,
80 bool lazy); 76 bool lazy);
81 void OnExtensionRemoveFilteredListener(const std::string& extension_id, 77 void OnExtensionRemoveFilteredListener(const std::string& extension_id,
82 const std::string& event_name, 78 const std::string& event_name,
83 const base::DictionaryValue& filter, 79 const base::DictionaryValue& filter,
84 bool lazy); 80 bool lazy);
85 void OnExtensionShouldSuspendAck(const std::string& extension_id, 81 void OnExtensionShouldSuspendAck(const std::string& extension_id,
86 int sequence_id); 82 int sequence_id);
87 void OnExtensionSuspendAck(const std::string& extension_id); 83 void OnExtensionSuspendAck(const std::string& extension_id);
88 void OnExtensionTransferBlobsAck(const std::vector<std::string>& blob_uuids); 84 void OnExtensionTransferBlobsAck(const std::vector<std::string>& blob_uuids);
89 85
90 // Message handlers on the IO thread. 86 // Message handlers on the IO thread.
91 void OnExtensionGenerateUniqueID(int* unique_id); 87 void OnExtensionGenerateUniqueID(int* unique_id);
92 void OnExtensionResumeRequests(int route_id); 88 void OnExtensionResumeRequests(int route_id);
93 void OnExtensionRequestForIOThread( 89 void OnExtensionRequestForIOThread(
94 int routing_id, 90 int routing_id,
95 const ExtensionHostMsg_Request_Params& params); 91 const ExtensionHostMsg_Request_Params& params);
96 92
97 // Runs on UI thread.
98 void MimeHandlerViewGuestCreatedCallback(int element_instance_id,
99 int embedder_render_process_id,
100 int embedder_render_frame_id,
101 const gfx::Size& element_size,
102 content::WebContents* web_contents);
103
104 const int render_process_id_; 93 const int render_process_id_;
105 94
106 // Should only be accessed on the UI thread. 95 // Should only be accessed on the UI thread.
107 content::BrowserContext* browser_context_; 96 content::BrowserContext* browser_context_;
108 97
109 scoped_refptr<extensions::InfoMap> extension_info_map_; 98 scoped_refptr<extensions::InfoMap> extension_info_map_;
110 99
111 // Weak pointers produced by this factory are bound to the IO thread. 100 // Weak pointers produced by this factory are bound to the IO thread.
112 base::WeakPtrFactory<ExtensionMessageFilter> weak_ptr_factory_; 101 base::WeakPtrFactory<ExtensionMessageFilter> weak_ptr_factory_;
113 102
114 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageFilter); 103 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageFilter);
115 }; 104 };
116 105
117 } // namespace extensions 106 } // namespace extensions
118 107
119 #endif // EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_ 108 #endif // EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/extension_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698