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

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

Issue 10855075: Clean-up inline members of nested classes (chrome/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
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 "chrome/browser/ui/webui/chrome_url_data_manager.h" 5 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 MessageLoop* ChromeURLDataManager::DataSource::MessageLoopForRequestPath( 158 MessageLoop* ChromeURLDataManager::DataSource::MessageLoopForRequestPath(
159 const std::string& path) const { 159 const std::string& path) const {
160 return message_loop_; 160 return message_loop_;
161 } 161 }
162 162
163 bool ChromeURLDataManager::DataSource::ShouldReplaceExistingSource() const { 163 bool ChromeURLDataManager::DataSource::ShouldReplaceExistingSource() const {
164 return true; 164 return true;
165 } 165 }
166 166
167 bool ChromeURLDataManager::DataSource::AllowCaching() const { return true; }
168
167 // static 169 // static
168 void ChromeURLDataManager::DataSource::SetFontAndTextDirection( 170 void ChromeURLDataManager::DataSource::SetFontAndTextDirection(
169 DictionaryValue* localized_strings) { 171 DictionaryValue* localized_strings) {
170 int web_font_family_id = IDS_WEB_FONT_FAMILY; 172 int web_font_family_id = IDS_WEB_FONT_FAMILY;
171 int web_font_size_id = IDS_WEB_FONT_SIZE; 173 int web_font_size_id = IDS_WEB_FONT_SIZE;
172 #if defined(OS_WIN) 174 #if defined(OS_WIN)
173 // Vary font settings for Windows XP. 175 // Vary font settings for Windows XP.
174 if (base::win::GetVersion() < base::win::VERSION_VISTA) { 176 if (base::win::GetVersion() < base::win::VERSION_VISTA) {
175 web_font_family_id = IDS_WEB_FONT_FAMILY_XP; 177 web_font_family_id = IDS_WEB_FONT_FAMILY_XP;
176 web_font_size_id = IDS_WEB_FONT_SIZE_XP; 178 web_font_size_id = IDS_WEB_FONT_SIZE_XP;
(...skipping 16 matching lines...) Expand all
193 base::i18n::IsRTL() ? "rtl" : "ltr"); 195 base::i18n::IsRTL() ? "rtl" : "ltr");
194 } 196 }
195 197
196 void ChromeURLDataManager::DataSource::SendResponseOnIOThread( 198 void ChromeURLDataManager::DataSource::SendResponseOnIOThread(
197 int request_id, 199 int request_id,
198 scoped_refptr<base::RefCountedMemory> bytes) { 200 scoped_refptr<base::RefCountedMemory> bytes) {
199 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 201 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
200 if (backend_) 202 if (backend_)
201 backend_->DataAvailable(request_id, bytes); 203 backend_->DataAvailable(request_id, bytes);
202 } 204 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chrome_url_data_manager.h ('k') | chrome/browser/ui/webui/ntp/new_tab_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698