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

Side by Side Diff: content/common/swapped_out_messages.cc

Issue 11861008: Expose the capturePicture feature in RenderView for Android WebView legacy API support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed sync IPC issues. Created 7 years, 10 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 | « android_webview/renderer/aw_render_view_ext.cc ('k') | content/public/common/content_client.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 #include "content/common/swapped_out_messages.h" 5 #include "content/common/swapped_out_messages.h"
6 6
7 #include "content/common/accessibility_messages.h" 7 #include "content/common/accessibility_messages.h"
8 #include "content/common/view_messages.h" 8 #include "content/common/view_messages.h"
9 #include "content/public/common/content_client.h" 9 #include "content/public/common/content_client.h"
10 10
(...skipping 18 matching lines...) Expand all
29 case ViewHostMsg_ClosePage_ACK::ID: 29 case ViewHostMsg_ClosePage_ACK::ID:
30 case ViewHostMsg_DomOperationResponse::ID: 30 case ViewHostMsg_DomOperationResponse::ID:
31 // Allow cross-process JavaScript calls. 31 // Allow cross-process JavaScript calls.
32 case ViewHostMsg_RouteCloseEvent::ID: 32 case ViewHostMsg_RouteCloseEvent::ID:
33 case ViewHostMsg_RouteMessageEvent::ID: 33 case ViewHostMsg_RouteMessageEvent::ID:
34 return true; 34 return true;
35 default: 35 default:
36 break; 36 break;
37 } 37 }
38 38
39 return false; 39 // Check with the embedder as well.
mkosiba (inactive) 2013/02/14 14:03:16 I think it might be fine to simply say that replie
Leandro Graciá Gil 2013/02/14 14:25:14 I think the question is if renderer -> browser syn
40 ContentClient* client = GetContentClient();
41 return client->CanSendWhileSwappedOut(msg);
40 } 42 }
41 43
42 bool SwappedOutMessages::CanHandleWhileSwappedOut( 44 bool SwappedOutMessages::CanHandleWhileSwappedOut(
43 const IPC::Message& msg) { 45 const IPC::Message& msg) {
44 // Any message the renderer is allowed to send while swapped out should 46 // Any message the renderer is allowed to send while swapped out should
45 // be handled by the browser. 47 // be handled by the browser.
46 if (CanSendWhileSwappedOut(&msg)) 48 if (CanSendWhileSwappedOut(&msg))
47 return true; 49 return true;
48 50
49 // We drop most other messages that arrive from a swapped out renderer. 51 // We drop most other messages that arrive from a swapped out renderer.
(...skipping 29 matching lines...) Expand all
79 default: 81 default:
80 break; 82 break;
81 } 83 }
82 84
83 // Check with the embedder as well. 85 // Check with the embedder as well.
84 ContentClient* client = GetContentClient(); 86 ContentClient* client = GetContentClient();
85 return client->CanHandleWhileSwappedOut(msg); 87 return client->CanHandleWhileSwappedOut(msg);
86 } 88 }
87 89
88 } // namespace content 90 } // namespace content
OLDNEW
« no previous file with comments | « android_webview/renderer/aw_render_view_ext.cc ('k') | content/public/common/content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698