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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 11360106: Browser Plugin: Implement AutoSize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reupload Created 8 years, 1 month 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 (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 #include "content/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 // Allow BrowserPluginHostMsg_* sync messages to run on the UI thread. 922 // Allow BrowserPluginHostMsg_* sync messages to run on the UI thread.
923 // Platform apps will not support windowed plugins so the deadlock cycle 923 // Platform apps will not support windowed plugins so the deadlock cycle
924 // browser -> plugin -> renderer -> browser referred in 924 // browser -> plugin -> renderer -> browser referred in
925 // BrowserMessageFilter::CheckCanDispatchOnUI() is not supposed to happen. If 925 // BrowserMessageFilter::CheckCanDispatchOnUI() is not supposed to happen. If
926 // we want to support windowed plugins, sync messages in BrowserPlugin might 926 // we want to support windowed plugins, sync messages in BrowserPlugin might
927 // need to be changed to async messages. 927 // need to be changed to async messages.
928 // TODO(fsamuel): Disallow BrowserPluginHostMsg_* sync messages to run on UI 928 // TODO(fsamuel): Disallow BrowserPluginHostMsg_* sync messages to run on UI
929 // thread and make these messages async: http://crbug.com/149063. 929 // thread and make these messages async: http://crbug.com/149063.
930 if (msg.type() != BrowserPluginHostMsg_HandleInputEvent::ID && 930 if (msg.type() != BrowserPluginHostMsg_HandleInputEvent::ID &&
931 msg.type() != BrowserPluginHostMsg_ResizeGuest::ID && 931 msg.type() != BrowserPluginHostMsg_ResizeGuest::ID &&
932 msg.type() != BrowserPluginHostMsg_SetAutoSize::ID &&
932 !BrowserMessageFilter::CheckCanDispatchOnUI(msg, this)) 933 !BrowserMessageFilter::CheckCanDispatchOnUI(msg, this))
933 return true; 934 return true;
934 935
935 // Filter out most IPC messages if this renderer is swapped out. 936 // Filter out most IPC messages if this renderer is swapped out.
936 // We still want to handle certain ACKs to keep our state consistent. 937 // We still want to handle certain ACKs to keep our state consistent.
937 if (is_swapped_out_) { 938 if (is_swapped_out_) {
938 if (!SwappedOutMessages::CanHandleWhileSwappedOut(msg)) { 939 if (!SwappedOutMessages::CanHandleWhileSwappedOut(msg)) {
939 // If this is a synchronous message and we decided not to handle it, 940 // If this is a synchronous message and we decided not to handle it,
940 // we must send an error reply, or else the renderer will be stuck 941 // we must send an error reply, or else the renderer will be stuck
941 // and won't respond to future requests. 942 // and won't respond to future requests.
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after
2029 is_waiting_for_beforeunload_ack_ = false; 2030 is_waiting_for_beforeunload_ack_ = false;
2030 is_waiting_for_unload_ack_ = false; 2031 is_waiting_for_unload_ack_ = false;
2031 has_timed_out_on_unload_ = false; 2032 has_timed_out_on_unload_ = false;
2032 } 2033 }
2033 2034
2034 void RenderViewHostImpl::ClearPowerSaveBlockers() { 2035 void RenderViewHostImpl::ClearPowerSaveBlockers() {
2035 STLDeleteValues(&power_save_blockers_); 2036 STLDeleteValues(&power_save_blockers_);
2036 } 2037 }
2037 2038
2038 } // namespace content 2039 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698