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

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

Issue 151168: Moved typedef of RedirectList from HistoryService class to history namespace.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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) 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 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1802 void AutomationProvider::OnChannelError() { 1802 void AutomationProvider::OnChannelError() {
1803 LOG(ERROR) << "AutomationProxy went away, shutting down app."; 1803 LOG(ERROR) << "AutomationProxy went away, shutting down app.";
1804 AutomationProviderList::GetInstance()->RemoveProvider(this); 1804 AutomationProviderList::GetInstance()->RemoveProvider(this);
1805 } 1805 }
1806 1806
1807 // TODO(brettw) change this to accept GURLs when history supports it 1807 // TODO(brettw) change this to accept GURLs when history supports it
1808 void AutomationProvider::OnRedirectQueryComplete( 1808 void AutomationProvider::OnRedirectQueryComplete(
1809 HistoryService::Handle request_handle, 1809 HistoryService::Handle request_handle,
1810 GURL from_url, 1810 GURL from_url,
1811 bool success, 1811 bool success,
1812 HistoryService::RedirectList* redirects) { 1812 history::RedirectList* redirects) {
1813 DCHECK(request_handle == redirect_query_); 1813 DCHECK(request_handle == redirect_query_);
1814 DCHECK(reply_message_ != NULL); 1814 DCHECK(reply_message_ != NULL);
1815 1815
1816 std::vector<GURL> redirects_gurl; 1816 std::vector<GURL> redirects_gurl;
1817 if (success) { 1817 if (success) {
1818 reply_message_->WriteBool(true); 1818 reply_message_->WriteBool(true);
1819 for (size_t i = 0; i < redirects->size(); i++) 1819 for (size_t i = 0; i < redirects->size(); i++)
1820 redirects_gurl.push_back(redirects->at(i)); 1820 redirects_gurl.push_back(redirects->at(i));
1821 } else { 1821 } else {
1822 reply_message_->WriteInt(-1); // Negative count indicates failure. 1822 reply_message_->WriteInt(-1); // Negative count indicates failure.
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after
3019 if (container) { 3019 if (container) {
3020 *count = static_cast<int>(container->GetBlockedPopupCount()); 3020 *count = static_cast<int>(container->GetBlockedPopupCount());
3021 } else { 3021 } else {
3022 // If we don't have a container, we don't have any blocked popups to 3022 // If we don't have a container, we don't have any blocked popups to
3023 // contain! 3023 // contain!
3024 *count = 0; 3024 *count = 0;
3025 } 3025 }
3026 } 3026 }
3027 } 3027 }
3028 } 3028 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider.h ('k') | chrome/browser/bookmarks/bookmark_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698