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

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

Issue 10658029: Revert 144115 - Manage IsolatedContext with reference counts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 } 545 }
546 546
547 filesets.insert(path); 547 filesets.insert(path);
548 } 548 }
549 549
550 fileapi::IsolatedContext* isolated_context = 550 fileapi::IsolatedContext* isolated_context =
551 fileapi::IsolatedContext::GetInstance(); 551 fileapi::IsolatedContext::GetInstance();
552 DCHECK(isolated_context); 552 DCHECK(isolated_context);
553 std::string filesystem_id = isolated_context->RegisterIsolatedFileSystem( 553 std::string filesystem_id = isolated_context->RegisterIsolatedFileSystem(
554 filesets); 554 filesets);
555 DCHECK(!filesystem_id.empty());
556 policy->GrantReadFileSystem(renderer_id, filesystem_id); 555 policy->GrantReadFileSystem(renderer_id, filesystem_id);
557 filtered_data.filesystem_id = UTF8ToUTF16(filesystem_id); 556 filtered_data.filesystem_id = UTF8ToUTF16(filesystem_id);
558 557
559 Send(new DragMsg_TargetDragEnter(GetRoutingID(), filtered_data, client_pt, 558 Send(new DragMsg_TargetDragEnter(GetRoutingID(), filtered_data, client_pt,
560 screen_pt, operations_allowed, 559 screen_pt, operations_allowed,
561 key_modifiers)); 560 key_modifiers));
562 } 561 }
563 562
564 void RenderViewHostImpl::DragTargetDragOver( 563 void RenderViewHostImpl::DragTargetDragOver(
565 const gfx::Point& client_pt, 564 const gfx::Point& client_pt,
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1844 // can cause navigations to be ignored in OnMsgNavigate. 1843 // can cause navigations to be ignored in OnMsgNavigate.
1845 is_waiting_for_beforeunload_ack_ = false; 1844 is_waiting_for_beforeunload_ack_ = false;
1846 is_waiting_for_unload_ack_ = false; 1845 is_waiting_for_unload_ack_ = false;
1847 } 1846 }
1848 1847
1849 void RenderViewHostImpl::ClearPowerSaveBlockers() { 1848 void RenderViewHostImpl::ClearPowerSaveBlockers() {
1850 STLDeleteValues(&power_save_blockers_); 1849 STLDeleteValues(&power_save_blockers_);
1851 } 1850 }
1852 1851
1853 } // namespace content 1852 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/child_process_security_policy_impl.cc ('k') | content/browser/renderer_host/render_view_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698