summaryrefslogtreecommitdiffstats
path: root/chrome/common/temp_scaffolding_stubs.cc
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-06 20:36:33 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-06 20:36:33 +0000
commitbe645db8f6309a1e9a2670e3a23c7b2d7b403519 (patch)
tree2f8b2408bdba3c970074ec5bb2f027e7b78776e3 /chrome/common/temp_scaffolding_stubs.cc
parentda90ffdff909ac442444c6d7b8ec9a2a15d8f01a (diff)
downloadchromium_src-be645db8f6309a1e9a2670e3a23c7b2d7b403519.zip
chromium_src-be645db8f6309a1e9a2670e3a23c7b2d7b403519.tar.gz
chromium_src-be645db8f6309a1e9a2670e3a23c7b2d7b403519.tar.bz2
Reference and create a RenderView when needed.
This initiates the landslide of linker hell in Chromium.app, bringing in webkit, v8, and the kitchen sink. Review URL: http://codereview.chromium.org/21123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9335 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/temp_scaffolding_stubs.cc')
-rw-r--r--chrome/common/temp_scaffolding_stubs.cc76
1 files changed, 53 insertions, 23 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.cc b/chrome/common/temp_scaffolding_stubs.cc
index b79214f..197a645 100644
--- a/chrome/common/temp_scaffolding_stubs.cc
+++ b/chrome/common/temp_scaffolding_stubs.cc
@@ -8,6 +8,7 @@
#include "base/logging.h"
#include "base/thread.h"
#include "base/path_service.h"
+#include "base/string_piece.h"
#include "base/singleton.h"
#include "base/task.h"
#include "build/build_config.h"
@@ -32,6 +33,7 @@
#include "chrome/common/resource_bundle.h"
#include "net/url_request/url_request_context.h"
#include "webkit/glue/webcursor.h"
+#include "webkit/glue/webkit_glue.h"
// static
size_t SessionRestore::num_tabs_to_load_ = 0;
@@ -239,30 +241,12 @@ bool IsPluginProcess() {
return false;
}
-#if defined(OS_MACOSX)
-// We link this in for now to avoid hauling in all of WebCore (which we will
-// have to eventually do).
-namespace webkit_glue {
-std::string GetUserAgent(const GURL& url) {
- NOTIMPLEMENTED();
- return "";
-}
-// TODO(pinkerton): when these are removed, mock_webkit_glue.cc
-// must be re-added to the unit_test target for tests.
-void SetRecordPlaybackMode(bool) { }
-void SetJavaScriptFlags(const std::wstring&) { }
-void CheckForLeaks() { }
-std::string CreateHistoryStateForURL(const GURL& url) { return ""; }
-void GetScreenInfoHelper(NSView*) { NOTIMPLEMENTED(); }
-} // namespace webkit_glue
-#endif
-
//--------------------------------------------------------------------------
namespace chrome_browser_net {
void EnableDnsPrefetch(bool) { NOTIMPLEMENTED(); }
-
+
void DnsPrefetchList(const std::vector<std::string>& hostnames) { NOTIMPLEMENTED(); }
} // namespace chrome_browser_net
@@ -323,6 +307,17 @@ ResourceBundle& ResourceBundle::GetSharedInstance() {
g_shared_instance_ = new ResourceBundle;
return *g_shared_instance_;
}
+
+StringPiece ResourceBundle::GetRawDataResource(int resource_id) {
+ NOTIMPLEMENTED();
+ return StringPiece();
+}
+
+std::string ResourceBundle::GetDataResource(int resource_id) {
+ NOTIMPLEMENTED();
+ return "";
+}
+
#endif
LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info,
@@ -353,14 +348,49 @@ void ProcessWatcher::EnsureProcessTerminated(int) {
NOTIMPLEMENTED();
}
-#if defined(OS_MACOSX)
-WebCursor::WebCursor() {
+
+//--------------------------------------------------------------------------
+
+namespace l10n_util {
+
+std::wstring GetStringF(int message_id,
+ const std::wstring& a) {
+ NOTIMPLEMENTED();
+ return L"";
}
-WebCursor::~WebCursor() {
+
+std::wstring GetStringF(int message_id,
+ const std::wstring& a,
+ const std::wstring& b,
+ std::vector<size_t>* offsets) {
+ NOTIMPLEMENTED();
+ return L"";
}
-bool WebCursor::Deserialize(const Pickle* pickle, void** iter) {
+
+std::wstring GetStringF(int id,
+ const std::wstring& a,
+ const std::wstring& b,
+ const std::wstring& c) {
+ NOTIMPLEMENTED();
+ return L"";
+}
+
+} // l10n_util
+
+//--------------------------------------------------------------------------
+namespace webkit_glue {
+
+bool IsDefaultPluginEnabled() {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+#if defined(OS_MACOSX)
+bool ClipboardIsFormatAvailable(Clipboard::FormatType format) {
NOTIMPLEMENTED();
return false;
}
#endif
+} // webkit_glue
+