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

Side by Side Diff: content/ppapi_plugin/ppapi_thread.h

Issue 9981015: Add an interface for Flash to clear its data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « content/plugin/plugin_channel.cc ('k') | content/ppapi_plugin/ppapi_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PPAPI_PLUGIN_PPAPI_THREAD_H_ 5 #ifndef CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_
6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ 6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string>
10 11
11 #include "base/basictypes.h" 12 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
14 #include "base/process.h" 15 #include "base/process.h"
15 #include "base/scoped_native_library.h" 16 #include "base/scoped_native_library.h"
16 #include "build/build_config.h" 17 #include "build/build_config.h"
17 #include "content/common/child_thread.h" 18 #include "content/common/child_thread.h"
18 #include "ppapi/c/pp_module.h" 19 #include "ppapi/c/pp_module.h"
19 #include "ppapi/c/trusted/ppp_broker.h" 20 #include "ppapi/c/trusted/ppp_broker.h"
(...skipping 28 matching lines...) Expand all
48 virtual void Unregister(uint32 plugin_dispatcher_id) OVERRIDE; 49 virtual void Unregister(uint32 plugin_dispatcher_id) OVERRIDE;
49 50
50 // PluginProxyDelegate. 51 // PluginProxyDelegate.
51 virtual bool SendToBrowser(IPC::Message* msg) OVERRIDE; 52 virtual bool SendToBrowser(IPC::Message* msg) OVERRIDE;
52 virtual void PreCacheFont(const void* logfontw) OVERRIDE; 53 virtual void PreCacheFont(const void* logfontw) OVERRIDE;
53 54
54 // Message handlers. 55 // Message handlers.
55 void OnMsgLoadPlugin(const FilePath& path); 56 void OnMsgLoadPlugin(const FilePath& path);
56 void OnMsgCreateChannel(base::ProcessHandle host_process_handle, 57 void OnMsgCreateChannel(base::ProcessHandle host_process_handle,
57 int renderer_id); 58 int renderer_id);
59 void OnMsgClearSiteData(const FilePath& plugin_data_path,
60 const std::string& site,
61 uint64 flags,
62 uint64 max_age);
58 void OnMsgSetNetworkState(bool online); 63 void OnMsgSetNetworkState(bool online);
59 void OnPluginDispatcherMessageReceived(const IPC::Message& msg); 64 void OnPluginDispatcherMessageReceived(const IPC::Message& msg);
60 65
66 // Requests that the plugin clear data, returning true on success.
67 bool ClearSiteData(const FilePath& plugin_data_path,
68 const std::string& site,
69 uint64 flags,
70 uint64 max_age);
71
61 // Sets up the channel to the given renderer. On success, returns true and 72 // Sets up the channel to the given renderer. On success, returns true and
62 // fills the given ChannelHandle with the information from the new channel. 73 // fills the given ChannelHandle with the information from the new channel.
63 bool SetupRendererChannel(base::ProcessHandle host_process_handle, 74 bool SetupRendererChannel(base::ProcessHandle host_process_handle,
64 int renderer_id, 75 int renderer_id,
65 IPC::ChannelHandle* handle); 76 IPC::ChannelHandle* handle);
66 77
67 // Sets up the name of the plugin for logging using the given path. 78 // Sets up the name of the plugin for logging using the given path.
68 void SavePluginName(const FilePath& path); 79 void SavePluginName(const FilePath& path);
69 80
70 // True if running in a broker process rather than a normal plugin process. 81 // True if running in a broker process rather than a normal plugin process.
(...skipping 25 matching lines...) Expand all
96 std::map<uint32, ppapi::proxy::PluginDispatcher*> plugin_dispatchers_; 107 std::map<uint32, ppapi::proxy::PluginDispatcher*> plugin_dispatchers_;
97 uint32 next_plugin_dispatcher_id_; 108 uint32 next_plugin_dispatcher_id_;
98 109
99 // The WebKitPlatformSupport implementation. 110 // The WebKitPlatformSupport implementation.
100 scoped_ptr<PpapiWebKitPlatformSupportImpl> webkit_platform_support_; 111 scoped_ptr<PpapiWebKitPlatformSupportImpl> webkit_platform_support_;
101 112
102 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); 113 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread);
103 }; 114 };
104 115
105 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ 116 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_
OLDNEW
« no previous file with comments | « content/plugin/plugin_channel.cc ('k') | content/ppapi_plugin/ppapi_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698