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

Side by Side Diff: content/child/npapi/webplugin.h

Issue 1621503003: Remove 'WebPlugin::CheckIfRunInsecureContent'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | content/child/plugin_messages.h » ('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) 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_CHILD_NPAPI_WEBPLUGIN_H_ 5 #ifndef CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_H_ 6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 // Defers the loading of the resource identified by resource_id. This is 88 // Defers the loading of the resource identified by resource_id. This is
89 // controlled by the defer parameter. 89 // controlled by the defer parameter.
90 virtual void SetDeferResourceLoading(unsigned long resource_id, 90 virtual void SetDeferResourceLoading(unsigned long resource_id,
91 bool defer) = 0; 91 bool defer) = 0;
92 92
93 // Handles NPN_URLRedirectResponse calls issued by plugins in response to 93 // Handles NPN_URLRedirectResponse calls issued by plugins in response to
94 // HTTP URL redirect notifications. 94 // HTTP URL redirect notifications.
95 virtual void URLRedirectResponse(bool allow, int resource_id) = 0; 95 virtual void URLRedirectResponse(bool allow, int resource_id) = 0;
96 96
97 // Returns true if the new url is a secure transition. This is to catch a
98 // plugin src url transitioning from https to http.
99 virtual bool CheckIfRunInsecureContent(const GURL& url) = 0;
100
101 #if defined(OS_WIN) 97 #if defined(OS_WIN)
102 // |pump_messages_event| is a event handle which is used in NPP_HandleEvent 98 // |pump_messages_event| is a event handle which is used in NPP_HandleEvent
103 // calls to pump messages if the plugin enters a modal loop. 99 // calls to pump messages if the plugin enters a modal loop.
104 // |dummy_activation_window} is used to ensure correct keyboard activation. 100 // |dummy_activation_window} is used to ensure correct keyboard activation.
105 // It needs to be a child of the parent window. 101 // It needs to be a child of the parent window.
106 virtual void SetWindowlessData(HANDLE pump_messages_event, 102 virtual void SetWindowlessData(HANDLE pump_messages_event,
107 gfx::NativeViewId dummy_activation_window) = 0; 103 gfx::NativeViewId dummy_activation_window) = 0;
108 #endif 104 #endif
109 105
110 #if defined(OS_MACOSX) 106 #if defined(OS_MACOSX)
(...skipping 13 matching lines...) Expand all
124 virtual void AcceleratedPluginAllocatedIOSurface(int32_t width, 120 virtual void AcceleratedPluginAllocatedIOSurface(int32_t width,
125 int32_t height, 121 int32_t height,
126 uint32_t surface_id) = 0; 122 uint32_t surface_id) = 0;
127 virtual void AcceleratedPluginSwappedIOSurface() = 0; 123 virtual void AcceleratedPluginSwappedIOSurface() = 0;
128 #endif 124 #endif
129 }; 125 };
130 126
131 } // namespace content 127 } // namespace content
132 128
133 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_H_ 129 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/plugin_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698