OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "temp_scaffolding_stubs.h" | 5 #include "temp_scaffolding_stubs.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 // static | 157 // static |
158 bool Upgrade::SwapNewChromeExeIfPresent() { | 158 bool Upgrade::SwapNewChromeExeIfPresent() { |
159 NOTIMPLEMENTED(); | 159 NOTIMPLEMENTED(); |
160 return true; | 160 return true; |
161 } | 161 } |
162 | 162 |
163 void OpenFirstRunDialog(Profile* profile) { NOTIMPLEMENTED(); } | 163 void OpenFirstRunDialog(Profile* profile) { NOTIMPLEMENTED(); } |
164 | 164 |
165 GURL NewTabUIURL() { | 165 GURL NewTabUIURL() { |
166 NOTIMPLEMENTED(); | 166 NOTIMPLEMENTED(); |
167 // TODO(port): returning a blank URL here confuses the page IDs so make sure | 167 // TODO(port): returning a blank URL here confuses the page IDs so make sure |
168 // we load something | 168 // we load something |
169 return GURL("http://dev.chromium.org"); | 169 return GURL("http://dev.chromium.org"); |
170 } | 170 } |
171 | 171 |
172 //-------------------------------------------------------------------------- | 172 //-------------------------------------------------------------------------- |
173 | 173 |
174 PluginService* PluginService::GetInstance() { | 174 PluginService* PluginService::GetInstance() { |
175 return Singleton<PluginService>::get(); | 175 return Singleton<PluginService>::get(); |
176 } | 176 } |
177 | 177 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 const std::wstring& TabContents::GetTitle() const { | 268 const std::wstring& TabContents::GetTitle() const { |
269 // We use the title for the last committed entry rather than a pending | 269 // We use the title for the last committed entry rather than a pending |
270 // navigation entry. For example, when the user types in a URL, we want to | 270 // navigation entry. For example, when the user types in a URL, we want to |
271 // keep the old page's title until the new load has committed and we get a new | 271 // keep the old page's title until the new load has committed and we get a new |
272 // title. | 272 // title. |
273 // The exception is with transient pages, for which we really want to use | 273 // The exception is with transient pages, for which we really want to use |
274 // their title, as they are not committed. | 274 // their title, as they are not committed. |
275 NavigationEntry* entry = controller_->GetTransientEntry(); | 275 NavigationEntry* entry = controller_->GetTransientEntry(); |
276 if (entry) | 276 if (entry) |
277 return entry->GetTitleForDisplay(); | 277 return entry->GetTitleForDisplay(); |
278 | 278 |
279 entry = controller_->GetLastCommittedEntry(); | 279 entry = controller_->GetLastCommittedEntry(); |
280 if (entry) | 280 if (entry) |
281 return entry->GetTitleForDisplay(); | 281 return entry->GetTitleForDisplay(); |
282 else if (controller_->LoadingURLLazily()) | 282 else if (controller_->LoadingURLLazily()) |
283 return controller_->GetLazyTitle(); | 283 return controller_->GetLazyTitle(); |
284 return EmptyWString(); | 284 return EmptyWString(); |
285 } | 285 } |
286 | 286 |
287 void TabContents::NotifyNavigationStateChanged(unsigned changed_flags) { | 287 void TabContents::NotifyNavigationStateChanged(unsigned changed_flags) { |
288 if (delegate_) | 288 if (delegate_) |
(...skipping 28 matching lines...) Expand all Loading... |
317 else | 317 else |
318 return max_page_id_; | 318 return max_page_id_; |
319 } | 319 } |
320 | 320 |
321 void TabContents::UpdateMaxPageID(int32 page_id) { | 321 void TabContents::UpdateMaxPageID(int32 page_id) { |
322 // Ensure both the SiteInstance and RenderProcessHost update their max page | 322 // Ensure both the SiteInstance and RenderProcessHost update their max page |
323 // IDs in sync. Only WebContents will also have site instances, except during | 323 // IDs in sync. Only WebContents will also have site instances, except during |
324 // testing. | 324 // testing. |
325 if (GetSiteInstance()) | 325 if (GetSiteInstance()) |
326 GetSiteInstance()->UpdateMaxPageID(page_id); | 326 GetSiteInstance()->UpdateMaxPageID(page_id); |
327 | 327 |
328 if (AsWebContents()) | 328 if (AsWebContents()) |
329 AsWebContents()->process()->UpdateMaxPageID(page_id); | 329 AsWebContents()->process()->UpdateMaxPageID(page_id); |
330 else | 330 else |
331 max_page_id_ = std::max(max_page_id_, page_id); | 331 max_page_id_ = std::max(max_page_id_, page_id); |
332 } | 332 } |
333 | 333 |
334 //-------------------------------------------------------------------------- | 334 //-------------------------------------------------------------------------- |
335 | 335 |
336 void RLZTracker::CleanupRlz() { | 336 void RLZTracker::CleanupRlz() { |
337 NOTIMPLEMENTED(); | 337 NOTIMPLEMENTED(); |
(...skipping 11 matching lines...) Expand all Loading... |
349 } | 349 } |
350 | 350 |
351 // This depends on porting all the plugin IPC messages. | 351 // This depends on porting all the plugin IPC messages. |
352 bool IsPluginProcess() { | 352 bool IsPluginProcess() { |
353 NOTIMPLEMENTED(); | 353 NOTIMPLEMENTED(); |
354 return false; | 354 return false; |
355 } | 355 } |
356 | 356 |
357 //-------------------------------------------------------------------------- | 357 //-------------------------------------------------------------------------- |
358 | 358 |
359 namespace chrome_browser_net { | |
360 | |
361 void EnableDnsPrefetch(bool) { NOTIMPLEMENTED(); } | |
362 | |
363 void DnsPrefetchGetHtmlInfo(std::string* output) { NOTIMPLEMENTED(); } | |
364 | |
365 void DnsPrefetchList(const std::vector<std::string>& hostnames) { | |
366 NOTIMPLEMENTED(); | |
367 } | |
368 | |
369 void SaveHostNamesForNextStartup(PrefService* local_state) { NOTIMPLEMENTED(); } | |
370 | |
371 void TrimSubresourceReferrers() { NOTIMPLEMENTED(); } | |
372 | |
373 void SaveSubresourceReferrers(PrefService* local_state) { NOTIMPLEMENTED(); } | |
374 | |
375 } // namespace chrome_browser_net | |
376 | |
377 //-------------------------------------------------------------------------- | |
378 | |
379 // This is from chrome_plugin_util.cc. | 359 // This is from chrome_plugin_util.cc. |
380 void CPB_Free(void* memory) { NOTIMPLEMENTED(); } | 360 void CPB_Free(void* memory) { NOTIMPLEMENTED(); } |
381 | 361 |
382 //-------------------------------------------------------------------------- | 362 //-------------------------------------------------------------------------- |
383 | 363 |
384 void RunJavascriptMessageBox(WebContents* web_contents, | 364 void RunJavascriptMessageBox(WebContents* web_contents, |
385 int dialog_flags, | 365 int dialog_flags, |
386 const std::wstring& message_text, | 366 const std::wstring& message_text, |
387 const std::wstring& default_prompt_text, | 367 const std::wstring& default_prompt_text, |
388 bool display_suppress_checkbox, | 368 bool display_suppress_checkbox, |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 TabContentsType* result_type) { | 556 TabContentsType* result_type) { |
577 NOTIMPLEMENTED(); | 557 NOTIMPLEMENTED(); |
578 return false; | 558 return false; |
579 } | 559 } |
580 | 560 |
581 bool NewTabUIHandleURL(GURL* url, | 561 bool NewTabUIHandleURL(GURL* url, |
582 TabContentsType* result_type) { | 562 TabContentsType* result_type) { |
583 NOTIMPLEMENTED(); | 563 NOTIMPLEMENTED(); |
584 return false; | 564 return false; |
585 } | 565 } |
OLD | NEW |