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

Side by Side Diff: chrome/browser/ui/browser.cc

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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) 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 "chrome/browser/ui/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #endif // OS_WIN 10 #endif // OS_WIN
(...skipping 2491 matching lines...) Expand 10 before | Expand all | Expand 10 after
2502 scoped_refptr<FileSelectHelper> file_select_helper( 2502 scoped_refptr<FileSelectHelper> file_select_helper(
2503 new FileSelectHelper(profile)); 2503 new FileSelectHelper(profile));
2504 file_select_helper->RunFileChooser(tab->render_view_host(), tab, params); 2504 file_select_helper->RunFileChooser(tab->render_view_host(), tab, params);
2505 } 2505 }
2506 2506
2507 // static 2507 // static
2508 void Browser::EnumerateDirectoryHelper(TabContents* tab, int request_id, 2508 void Browser::EnumerateDirectoryHelper(TabContents* tab, int request_id,
2509 const FilePath& path) { 2509 const FilePath& path) {
2510 ChildProcessSecurityPolicy* policy = 2510 ChildProcessSecurityPolicy* policy =
2511 ChildProcessSecurityPolicy::GetInstance(); 2511 ChildProcessSecurityPolicy::GetInstance();
2512 if (!policy->CanReadDirectory(tab->render_view_host()->process()->id(), 2512 if (!policy->CanReadDirectory(tab->render_view_host()->process()->GetID(),
2513 path)) { 2513 path)) {
2514 return; 2514 return;
2515 } 2515 }
2516 2516
2517 Profile* profile = 2517 Profile* profile =
2518 Profile::FromBrowserContext(tab->browser_context()); 2518 Profile::FromBrowserContext(tab->browser_context());
2519 // FileSelectHelper adds a reference to itself and only releases it after 2519 // FileSelectHelper adds a reference to itself and only releases it after
2520 // sending the result message. It won't be destroyed when this reference 2520 // sending the result message. It won't be destroyed when this reference
2521 // goes out of scope. 2521 // goes out of scope.
2522 scoped_refptr<FileSelectHelper> file_select_helper( 2522 scoped_refptr<FileSelectHelper> file_select_helper(
(...skipping 2994 matching lines...) Expand 10 before | Expand all | Expand 10 after
5517 } 5517 }
5518 5518
5519 void Browser::UpdateFullscreenExitBubbleContent() { 5519 void Browser::UpdateFullscreenExitBubbleContent() {
5520 GURL url; 5520 GURL url;
5521 if (fullscreened_tab_) 5521 if (fullscreened_tab_)
5522 url = fullscreened_tab_->tab_contents()->GetURL(); 5522 url = fullscreened_tab_->tab_contents()->GetURL();
5523 5523
5524 window_->UpdateFullscreenExitBubbleContent( 5524 window_->UpdateFullscreenExitBubbleContent(
5525 url, GetFullscreenExitBubbleType()); 5525 url, GetFullscreenExitBubbleType());
5526 } 5526 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698