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

Side by Side Diff: chrome/common/temp_scaffolding_stubs.cc

Issue 21429: Add more scaffolding to make shared linking work. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | « chrome/common/temp_scaffolding_stubs.h ('k') | no next file » | 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) 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"
8
9 #include <vector>
10
7 #include "base/file_util.h" 11 #include "base/file_util.h"
8 #include "base/logging.h" 12 #include "base/logging.h"
9 #include "base/thread.h" 13 #include "base/thread.h"
10 #include "base/path_service.h" 14 #include "base/path_service.h"
11 #include "base/string_piece.h" 15 #include "base/string_piece.h"
12 #include "base/singleton.h" 16 #include "base/singleton.h"
13 #include "base/task.h" 17 #include "base/task.h"
14 #include "build/build_config.h"
15 #include "chrome/browser/autocomplete/autocomplete.h" 18 #include "chrome/browser/autocomplete/autocomplete.h"
16 #include "chrome/browser/autocomplete/history_url_provider.h" 19 #include "chrome/browser/autocomplete/history_url_provider.h"
20 #include "chrome/browser/bookmarks/bookmark_utils.h"
17 #include "chrome/browser/browser.h" 21 #include "chrome/browser/browser.h"
18 #include "chrome/browser/browser_shutdown.h" 22 #include "chrome/browser/browser_shutdown.h"
19 #include "chrome/browser/cache_manager_host.h" 23 #include "chrome/browser/cache_manager_host.h"
20 #include "chrome/browser/debugger/debugger_shell.h" 24 #include "chrome/browser/debugger/debugger_shell.h"
21 #include "chrome/browser/first_run.h" 25 #include "chrome/browser/first_run.h"
22 #include "chrome/browser/history/in_memory_history_backend.h" 26 #include "chrome/browser/history/in_memory_history_backend.h"
23 #include "chrome/browser/memory_details.h" 27 #include "chrome/browser/memory_details.h"
24 #include "chrome/browser/profile_manager.h" 28 #include "chrome/browser/profile_manager.h"
25 #include "chrome/browser/renderer_host/render_widget_helper.h" 29 #include "chrome/browser/renderer_host/render_widget_helper.h"
26 #include "chrome/browser/renderer_host/resource_message_filter.h" 30 #include "chrome/browser/renderer_host/resource_message_filter.h"
(...skipping 18 matching lines...) Expand all
45 49
46 // static 50 // static
47 size_t AutocompleteProvider::max_matches_; 51 size_t AutocompleteProvider::max_matches_;
48 52
49 AutocompleteProvider::~AutocompleteProvider() { 53 AutocompleteProvider::~AutocompleteProvider() {
50 // Though nothing needs this function yet, we want to get the C++ metadata 54 // Though nothing needs this function yet, we want to get the C++ metadata
51 // for this class grounded in this file. 55 // for this class grounded in this file.
52 NOTIMPLEMENTED(); 56 NOTIMPLEMENTED();
53 } 57 }
54 58
59 std::wstring AutocompleteProvider::StringForURLDisplay(const GURL& url,
60 bool check_accept_lang) {
61 NOTIMPLEMENTED();
62 return L"";
63 }
64
55 // static 65 // static
56 size_t AutocompleteResult::max_matches_; 66 size_t AutocompleteResult::max_matches_;
57 67
58 //static 68 //static
59 std::string AutocompleteInput::TypeToString(AutocompleteInput::Type type) { 69 std::string AutocompleteInput::TypeToString(AutocompleteInput::Type type) {
60 NOTIMPLEMENTED(); 70 NOTIMPLEMENTED();
61 return ""; 71 return "";
62 } 72 }
63 73
74 AutocompleteMatch::AutocompleteMatch(AutocompleteProvider* provider,
75 int relevance,
76 bool deletable,
77 Type type) {
78 NOTIMPLEMENTED();
79 }
80
64 //static 81 //static
65 std::string AutocompleteMatch::TypeToString(AutocompleteMatch::Type type) { 82 std::string AutocompleteMatch::TypeToString(AutocompleteMatch::Type type) {
66 NOTIMPLEMENTED(); 83 NOTIMPLEMENTED();
67 return ""; 84 return "";
68 } 85 }
69 86
87 void AutocompleteMatch::ClassifyLocationInString(
88 size_t match_location,
89 size_t match_length,
90 size_t overall_length,
91 int style,
92 ACMatchClassifications* classification) {
93 NOTIMPLEMENTED();
94 }
95
70 //-------------------------------------------------------------------------- 96 //--------------------------------------------------------------------------
71 97
72 UserDataManager* UserDataManager::instance_ = NULL; 98 UserDataManager* UserDataManager::instance_ = NULL;
73 99
74 UserDataManager* UserDataManager::Create() { 100 UserDataManager* UserDataManager::Create() {
75 DCHECK(!instance_); 101 DCHECK(!instance_);
76 std::wstring user_data; 102 std::wstring user_data;
77 PathService::Get(chrome::DIR_USER_DATA, &user_data); 103 PathService::Get(chrome::DIR_USER_DATA, &user_data);
78 instance_ = new UserDataManager(user_data); 104 instance_ = new UserDataManager(user_data);
79 return instance_; 105 return instance_;
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 namespace chrome_browser_net { 374 namespace chrome_browser_net {
349 375
350 void EnableDnsPrefetch(bool) { NOTIMPLEMENTED(); } 376 void EnableDnsPrefetch(bool) { NOTIMPLEMENTED(); }
351 377
352 void DnsPrefetchList(const std::vector<std::string>& hostnames) { 378 void DnsPrefetchList(const std::vector<std::string>& hostnames) {
353 NOTIMPLEMENTED(); 379 NOTIMPLEMENTED();
354 } 380 }
355 381
356 void SaveHostNamesForNextStartup(PrefService* local_state) { NOTIMPLEMENTED(); } 382 void SaveHostNamesForNextStartup(PrefService* local_state) { NOTIMPLEMENTED(); }
357 383
384 void DnsPrefetchGetHtmlInfo(std::string* output) { NOTIMPLEMENTED(); }
385
358 } // namespace chrome_browser_net 386 } // namespace chrome_browser_net
359 387
360 //-------------------------------------------------------------------------- 388 //--------------------------------------------------------------------------
361 389
362 // This is from chrome_plugin_util.cc. 390 // This is from chrome_plugin_util.cc.
363 void CPB_Free(void* memory) { NOTIMPLEMENTED(); } 391 void CPB_Free(void* memory) { NOTIMPLEMENTED(); }
364 392
365 //-------------------------------------------------------------------------- 393 //--------------------------------------------------------------------------
366 394
367 void RunJavascriptMessageBox(WebContents* web_contents, 395 void RunJavascriptMessageBox(WebContents* web_contents,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 #endif // !CHROME_DEBUGGER_DISABLED 489 #endif // !CHROME_DEBUGGER_DISABLED
462 490
463 void HistoryURLProvider::ExecuteWithDB(history::HistoryBackend*, 491 void HistoryURLProvider::ExecuteWithDB(history::HistoryBackend*,
464 history::URLDatabase*, 492 history::URLDatabase*,
465 HistoryURLProviderParams*) { 493 HistoryURLProviderParams*) {
466 NOTIMPLEMENTED(); 494 NOTIMPLEMENTED();
467 } 495 }
468 496
469 namespace bookmark_utils { 497 namespace bookmark_utils {
470 498
471 bool MoreRecentlyAdded(BookmarkNode* n1, BookmarkNode* n2) { 499 bool DoesBookmarkContainText(BookmarkNode* node, const std::wstring& text) {
472 NOTIMPLEMENTED(); 500 NOTIMPLEMENTED();
473 return false; 501 return false;
474 } 502 }
475 503
504 void GetMostRecentlyAddedEntries(BookmarkModel* model,
505 size_t count,
506 std::vector<BookmarkNode*>* nodes) {
507 NOTIMPLEMENTED();
508 }
509
476 std::vector<BookmarkNode*> GetMostRecentlyModifiedGroups(BookmarkModel* model, 510 std::vector<BookmarkNode*> GetMostRecentlyModifiedGroups(BookmarkModel* model,
477 size_t max_count) { 511 size_t max_count) {
478 NOTIMPLEMENTED(); 512 NOTIMPLEMENTED();
479 return std::vector<BookmarkNode*>(); 513 return std::vector<BookmarkNode*>();
480 } 514 }
481 515
516 void GetBookmarksContainingText(BookmarkModel* model,
517 const std::wstring& text,
518 size_t max_count,
519 std::vector<BookmarkNode*>* nodes) {
520 NOTIMPLEMENTED();
521 }
522
523 void GetBookmarksMatchingText(BookmarkModel* model,
524 const std::wstring& text,
525 size_t max_count,
526 std::vector<TitleMatch>* matches) {
527 NOTIMPLEMENTED();
528 }
529
530 bool MoreRecentlyAdded(BookmarkNode* n1, BookmarkNode* n2) {
531 NOTIMPLEMENTED();
532 return false;
533 }
534
482 } 535 }
483 536
484 ScopableCPRequest::~ScopableCPRequest() { 537 ScopableCPRequest::~ScopableCPRequest() {
485 NOTIMPLEMENTED(); 538 NOTIMPLEMENTED();
486 } 539 }
487 540
488 #if defined(OS_MACOSX) 541 #if defined(OS_MACOSX)
489 namespace gfx { 542 namespace gfx {
490 std::wstring GetCleanStringFromUrl(const GURL& url, 543 std::wstring GetCleanStringFromUrl(const GURL& url,
491 const std::wstring& languages, 544 const std::wstring& languages,
(...skipping 20 matching lines...) Expand all
512 565
513 InfoBar* AlertInfoBarDelegate::CreateInfoBar() { 566 InfoBar* AlertInfoBarDelegate::CreateInfoBar() {
514 NOTIMPLEMENTED(); 567 NOTIMPLEMENTED();
515 return NULL; 568 return NULL;
516 } 569 }
517 570
518 InfoBar* LinkInfoBarDelegate::CreateInfoBar() { 571 InfoBar* LinkInfoBarDelegate::CreateInfoBar() {
519 NOTIMPLEMENTED(); 572 NOTIMPLEMENTED();
520 return NULL; 573 return NULL;
521 } 574 }
575
576 bool CanImportURL(const GURL& url) {
577 NOTIMPLEMENTED();
578 return false;
579 }
580
581 bool DOMUIContentsCanHandleURL(GURL* url,
582 TabContentsType* result_type) {
583 NOTIMPLEMENTED();
584 return false;
585 }
586
587 bool NewTabUIHandleURL(GURL* url,
588 TabContentsType* result_type) {
589 NOTIMPLEMENTED();
590 return false;
591 }
OLDNEW
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698