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

Side by Side Diff: chrome/browser/automation/automation_provider.cc

Issue 164383: Renames the NavigationEntry::display_url() to virtual_url().... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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 | « no previous file | chrome/browser/memory_details.cc » ('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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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/automation/automation_provider.h" 5 #include "chrome/browser/automation/automation_provider.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/message_box_flags.h" 8 #include "app/message_box_flags.h"
9 #include "base/file_version_info.h" 9 #include "base/file_version_info.h"
10 #include "base/json_reader.h" 10 #include "base/json_reader.h"
(...skipping 1912 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 if (context->cookie_store()->SetCookie(url, value)) 1923 if (context->cookie_store()->SetCookie(url, value))
1924 *response_value = 1; 1924 *response_value = 1;
1925 } 1925 }
1926 } 1926 }
1927 1927
1928 void AutomationProvider::GetTabURL(int handle, bool* success, GURL* url) { 1928 void AutomationProvider::GetTabURL(int handle, bool* success, GURL* url) {
1929 *success = false; 1929 *success = false;
1930 if (tab_tracker_->ContainsHandle(handle)) { 1930 if (tab_tracker_->ContainsHandle(handle)) {
1931 NavigationController* tab = tab_tracker_->GetResource(handle); 1931 NavigationController* tab = tab_tracker_->GetResource(handle);
1932 // Return what the user would see in the location bar. 1932 // Return what the user would see in the location bar.
1933 *url = tab->GetActiveEntry()->display_url(); 1933 *url = tab->GetActiveEntry()->virtual_url();
1934 *success = true; 1934 *success = true;
1935 } 1935 }
1936 } 1936 }
1937 1937
1938 #if defined(OS_WIN) 1938 #if defined(OS_WIN)
1939 void AutomationProvider::GetTabHWND(int handle, HWND* tab_hwnd) { 1939 void AutomationProvider::GetTabHWND(int handle, HWND* tab_hwnd) {
1940 *tab_hwnd = NULL; 1940 *tab_hwnd = NULL;
1941 1941
1942 if (tab_tracker_->ContainsHandle(handle)) { 1942 if (tab_tracker_->ContainsHandle(handle)) {
1943 NavigationController* tab = tab_tracker_->GetResource(handle); 1943 NavigationController* tab = tab_tracker_->GetResource(handle);
(...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after
3096 NOTREACHED(); 3096 NOTREACHED();
3097 return NULL; 3097 return NULL;
3098 } 3098 }
3099 3099
3100 RenderViewHost* view_host = tab_contents->render_view_host(); 3100 RenderViewHost* view_host = tab_contents->render_view_host();
3101 return view_host; 3101 return view_host;
3102 } 3102 }
3103 3103
3104 return NULL; 3104 return NULL;
3105 } 3105 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/memory_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698