summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-24 19:32:15 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-24 19:32:15 +0000
commit1d73faa8d5eea35b1141779e5310a9ababdd798a (patch)
treed6d2373c4a3fcc3c65d7ccae8e5bfe61963d129f /chrome/common
parent553dba6dd707ee02e609910462d2b7977f284af2 (diff)
downloadchromium_src-1d73faa8d5eea35b1141779e5310a9ababdd798a.zip
chromium_src-1d73faa8d5eea35b1141779e5310a9ababdd798a.tar.gz
chromium_src-1d73faa8d5eea35b1141779e5310a9ababdd798a.tar.bz2
Make autocomplete.cc and dependencies compile on Posix.
Review URL: http://codereview.chromium.org/28061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10277 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/temp_scaffolding_stubs.cc55
-rw-r--r--chrome/common/temp_scaffolding_stubs.h17
2 files changed, 17 insertions, 55 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.cc b/chrome/common/temp_scaffolding_stubs.cc
index b56a773..39cafaa 100644
--- a/chrome/common/temp_scaffolding_stubs.cc
+++ b/chrome/common/temp_scaffolding_stubs.cc
@@ -15,7 +15,6 @@
#include "base/string_piece.h"
#include "base/singleton.h"
#include "base/task.h"
-#include "chrome/browser/autocomplete/autocomplete.h"
#include "chrome/browser/autocomplete/history_url_provider.h"
#include "chrome/browser/bookmarks/bookmark_utils.h"
#include "chrome/browser/browser.h"
@@ -49,54 +48,6 @@
//--------------------------------------------------------------------------
-// static
-size_t AutocompleteProvider::max_matches_;
-
-AutocompleteProvider::~AutocompleteProvider() {
- // Though nothing needs this function yet, we want to get the C++ metadata
- // for this class grounded in this file.
- NOTIMPLEMENTED();
-}
-
-std::wstring AutocompleteProvider::StringForURLDisplay(const GURL& url,
- bool check_accept_lang) {
- NOTIMPLEMENTED();
- return L"";
-}
-
-// static
-size_t AutocompleteResult::max_matches_;
-
-AutocompleteMatch::AutocompleteMatch(AutocompleteProvider* provider,
- int relevance,
- bool deletable,
- Type type) {
- NOTIMPLEMENTED();
-}
-
-//static
-std::string AutocompleteInput::TypeToString(AutocompleteInput::Type type) {
- NOTIMPLEMENTED();
- return "";
-}
-
-//static
-std::string AutocompleteMatch::TypeToString(AutocompleteMatch::Type type) {
- NOTIMPLEMENTED();
- return "";
-}
-
-void AutocompleteMatch::ClassifyLocationInString(
- size_t match_location,
- size_t match_length,
- size_t overall_length,
- int style,
- ACMatchClassifications* classification) {
- NOTIMPLEMENTED();
-}
-
-//--------------------------------------------------------------------------
-
bool ShellIntegration::SetAsDefaultBrowser() {
NOTIMPLEMENTED();
return true;
@@ -403,12 +354,6 @@ void DebuggerShell::ProcessCommand(const std::wstring& data) {
}
#endif // !CHROME_DEBUGGER_DISABLED
-void HistoryURLProvider::ExecuteWithDB(history::HistoryBackend*,
- history::URLDatabase*,
- HistoryURLProviderParams*) {
- NOTIMPLEMENTED();
-}
-
namespace bookmark_utils {
bool DoesBookmarkContainText(BookmarkNode* node, const std::wstring& text) {
diff --git a/chrome/common/temp_scaffolding_stubs.h b/chrome/common/temp_scaffolding_stubs.h
index 05fdf0e..5179ffa 100644
--- a/chrome/common/temp_scaffolding_stubs.h
+++ b/chrome/common/temp_scaffolding_stubs.h
@@ -628,6 +628,15 @@ LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info,
class ExternalProtocolHandler {
public:
+ enum BlockState {
+ DONT_BLOCK,
+ BLOCK,
+ UNKNOWN,
+ };
+ static BlockState GetBlockState(const std::wstring& scheme) {
+ NOTIMPLEMENTED();
+ return UNKNOWN;
+ }
static void LaunchUrl(const GURL& url, int render_process_host_id,
int tab_contents_id) {
NOTIMPLEMENTED();
@@ -663,4 +672,12 @@ class FontsLanguagesWindowView {
void SelectLanguagesTab() { NOTIMPLEMENTED(); }
};
+class HistoryTabUI {
+ public:
+ static const GURL GetHistoryURLWithSearchText(const std::wstring& text) {
+ NOTIMPLEMENTED();
+ return GURL();
+ }
+};
+
#endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_