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

Side by Side Diff: chrome/browser/dom_ui/history_ui.cc

Issue 288005: First fix to minimize copying of image data. (Closed)
Patch Set: Modify gyp Created 11 years, 2 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 (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/dom_ui/history_ui.h" 5 #include "chrome/browser/dom_ui/history_ui.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/i18n/time_formatting.h" 9 #include "base/i18n/time_formatting.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 html_source)); 374 html_source));
375 } 375 }
376 376
377 // static 377 // static
378 const GURL HistoryUI::GetHistoryURLWithSearchText(const std::wstring& text) { 378 const GURL HistoryUI::GetHistoryURLWithSearchText(const std::wstring& text) {
379 return GURL(std::string(chrome::kChromeUIHistoryURL) + "#q=" + 379 return GURL(std::string(chrome::kChromeUIHistoryURL) + "#q=" +
380 EscapeQueryParamValue(WideToUTF8(text))); 380 EscapeQueryParamValue(WideToUTF8(text)));
381 } 381 }
382 382
383 // static 383 // static
384 bool HistoryUI::GetFaviconResourceBytes(std::vector<unsigned char>* bytes) { 384 RefCountedMemory* HistoryUI::GetFaviconResourceBytes() {
385 return ResourceBundle::GetSharedInstance(). 385 return ResourceBundle::GetSharedInstance().
386 LoadImageResourceBytes(IDR_HISTORY_FAVICON, bytes); 386 LoadImageResourceBytes(IDR_HISTORY_FAVICON);
387 } 387 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698