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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1619363002: Add compile time checks against longs being used in IPC structs on 32 bit Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more per Dmitry 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after
1386 IPC::Message* reply_msg) { 1386 IPC::Message* reply_msg) {
1387 // While a JS beforeunload dialog is showing, tabs in the same process 1387 // While a JS beforeunload dialog is showing, tabs in the same process
1388 // shouldn't process input events. 1388 // shouldn't process input events.
1389 GetProcess()->SetIgnoreInputEvents(true); 1389 GetProcess()->SetIgnoreInputEvents(true);
1390 render_view_host_->GetWidget()->StopHangMonitorTimeout(); 1390 render_view_host_->GetWidget()->StopHangMonitorTimeout();
1391 delegate_->RunBeforeUnloadConfirm(this, message, is_reload, reply_msg); 1391 delegate_->RunBeforeUnloadConfirm(this, message, is_reload, reply_msg);
1392 } 1392 }
1393 1393
1394 void RenderFrameHostImpl::OnTextSurroundingSelectionResponse( 1394 void RenderFrameHostImpl::OnTextSurroundingSelectionResponse(
1395 const base::string16& content, 1395 const base::string16& content,
1396 size_t start_offset, 1396 uint32_t start_offset,
1397 size_t end_offset) { 1397 uint32_t end_offset) {
1398 render_view_host_->OnTextSurroundingSelectionResponse( 1398 render_view_host_->OnTextSurroundingSelectionResponse(
1399 content, start_offset, end_offset); 1399 content, start_offset, end_offset);
1400 } 1400 }
1401 1401
1402 void RenderFrameHostImpl::OnDidAccessInitialDocument() { 1402 void RenderFrameHostImpl::OnDidAccessInitialDocument() {
1403 delegate_->DidAccessInitialDocument(); 1403 delegate_->DidAccessInitialDocument();
1404 } 1404 }
1405 1405
1406 void RenderFrameHostImpl::OnDidChangeOpener(int32_t opener_routing_id) { 1406 void RenderFrameHostImpl::OnDidChangeOpener(int32_t opener_routing_id) {
1407 frame_tree_node_->render_manager()->DidChangeOpener(opener_routing_id, 1407 frame_tree_node_->render_manager()->DidChangeOpener(opener_routing_id,
(...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after
2552 *dst = src; 2552 *dst = src;
2553 2553
2554 if (src.routing_id != -1) 2554 if (src.routing_id != -1)
2555 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); 2555 dst->tree_id = RoutingIDToAXTreeID(src.routing_id);
2556 2556
2557 if (src.parent_routing_id != -1) 2557 if (src.parent_routing_id != -1)
2558 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); 2558 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id);
2559 } 2559 }
2560 2560
2561 } // namespace content 2561 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698