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

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

Issue 8336007: Move content_client.h into content/public. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add back a needed include. Created 9 years, 2 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/common/sandbox_policy.cc ('k') | content/content_common.gypi » ('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 #include "content/common/swapped_out_messages.h" 5 #include "content/common/swapped_out_messages.h"
6 6
7 #include "content/common/content_client.h"
8 #include "content/common/view_messages.h" 7 #include "content/common/view_messages.h"
8 #include "content/public/common/content_client.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 bool SwappedOutMessages::CanSendWhileSwappedOut(const IPC::Message* msg) { 12 bool SwappedOutMessages::CanSendWhileSwappedOut(const IPC::Message* msg) {
13 // We filter out most IPC messages when swapped out. However, some are 13 // We filter out most IPC messages when swapped out. However, some are
14 // important (e.g., ACKs) for keeping the browser and renderer state 14 // important (e.g., ACKs) for keeping the browser and renderer state
15 // consistent in case we later return to the same renderer. 15 // consistent in case we later return to the same renderer.
16 switch (msg->type()) { 16 switch (msg->type()) {
17 // Handled by RenderWidget. 17 // Handled by RenderWidget.
18 case ViewHostMsg_HandleInputEvent_ACK::ID: 18 case ViewHostMsg_HandleInputEvent_ACK::ID:
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 default: 74 default:
75 break; 75 break;
76 } 76 }
77 77
78 // Check with the embedder as well. 78 // Check with the embedder as well.
79 ContentClient* client = GetContentClient(); 79 ContentClient* client = GetContentClient();
80 return client->CanHandleWhileSwappedOut(msg); 80 return client->CanHandleWhileSwappedOut(msg);
81 } 81 }
82 82
83 } // namespace content 83 } // namespace content
OLDNEW
« no previous file with comments | « content/common/sandbox_policy.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698