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

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

Issue 280393003: Blobs: Catching browser-process created Blobs in extension code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 10
10 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
13 #include "content/public/browser/browser_message_filter.h" 14 #include "content/public/browser/browser_message_filter.h"
14 15
15 struct ExtensionHostMsg_Request_Params; 16 struct ExtensionHostMsg_Request_Params;
16 17
17 namespace base { 18 namespace base {
18 class DictionaryValue; 19 class DictionaryValue;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 const std::string& event_name, 59 const std::string& event_name,
59 const base::DictionaryValue& filter, 60 const base::DictionaryValue& filter,
60 bool lazy); 61 bool lazy);
61 void OnExtensionRemoveFilteredListener(const std::string& extension_id, 62 void OnExtensionRemoveFilteredListener(const std::string& extension_id,
62 const std::string& event_name, 63 const std::string& event_name,
63 const base::DictionaryValue& filter, 64 const base::DictionaryValue& filter,
64 bool lazy); 65 bool lazy);
65 void OnExtensionShouldSuspendAck(const std::string& extension_id, 66 void OnExtensionShouldSuspendAck(const std::string& extension_id,
66 int sequence_id); 67 int sequence_id);
67 void OnExtensionSuspendAck(const std::string& extension_id); 68 void OnExtensionSuspendAck(const std::string& extension_id);
69 void OnExtensionTransferBlobsAck(const std::vector<std::string>& blob_uuids);
68 70
69 // Message handlers on the IO thread. 71 // Message handlers on the IO thread.
70 void OnExtensionGenerateUniqueID(int* unique_id); 72 void OnExtensionGenerateUniqueID(int* unique_id);
71 void OnExtensionResumeRequests(int route_id); 73 void OnExtensionResumeRequests(int route_id);
72 void OnExtensionRequestForIOThread( 74 void OnExtensionRequestForIOThread(
73 int routing_id, 75 int routing_id,
74 const ExtensionHostMsg_Request_Params& params); 76 const ExtensionHostMsg_Request_Params& params);
75 77
76 const int render_process_id_; 78 const int render_process_id_;
77 79
78 // Should only be accessed on the UI thread. 80 // Should only be accessed on the UI thread.
79 content::BrowserContext* browser_context_; 81 content::BrowserContext* browser_context_;
80 82
81 scoped_refptr<extensions::InfoMap> extension_info_map_; 83 scoped_refptr<extensions::InfoMap> extension_info_map_;
82 84
83 base::WeakPtrFactory<ExtensionMessageFilter> weak_ptr_factory_; 85 base::WeakPtrFactory<ExtensionMessageFilter> weak_ptr_factory_;
84 86
85 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageFilter); 87 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageFilter);
86 }; 88 };
87 89
88 } // namespace extensions 90 } // namespace extensions
89 91
90 #endif // EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_ 92 #endif // EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_function.cc ('k') | extensions/browser/extension_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698