1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "temp_scaffolding_stubs.h"
#include "base/file_util.h"
#include "base/logging.h"
#include "base/thread.h"
#include "base/path_service.h"
#include "base/singleton.h"
#include "base/task.h"
#include "build/build_config.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_shutdown.h"
#include "chrome/browser/cache_manager_host.h"
#include "chrome/browser/first_run.h"
#include "chrome/browser/history/in_memory_history_backend.h"
#include "chrome/browser/plugin_service.h"
#include "chrome/browser/profile_manager.h"
#include "chrome/browser/renderer_host/render_widget_helper.h"
#include "chrome/browser/resource_message_filter.h"
#include "chrome/browser/rlz/rlz.h"
#include "chrome/browser/search_engines/template_url_prepopulate_data.h"
#include "chrome/browser/shell_integration.h"
#include "chrome/browser/tab_contents/web_contents.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/gfx/chrome_font.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/pref_service.h"
#include "chrome/common/process_watcher.h"
#include "chrome/common/resource_bundle.h"
#include "net/url_request/url_request_context.h"
#include "webkit/glue/webcursor.h"
// static
size_t SessionRestore::num_tabs_to_load_ = 0;
//--------------------------------------------------------------------------
UserDataManager* UserDataManager::instance_ = NULL;
UserDataManager* UserDataManager::Create() {
DCHECK(!instance_);
std::wstring user_data;
PathService::Get(chrome::DIR_USER_DATA, &user_data);
instance_ = new UserDataManager(user_data);
return instance_;
}
UserDataManager* UserDataManager::Get() {
DCHECK(instance_);
return instance_;
}
bool ShellIntegration::SetAsDefaultBrowser() {
NOTIMPLEMENTED();
return true;
}
bool ShellIntegration::IsDefaultBrowser() {
NOTIMPLEMENTED();
return true;
}
//--------------------------------------------------------------------------
namespace browser_shutdown {
void ReadLastShutdownInfo() { NOTIMPLEMENTED(); }
void Shutdown() { NOTIMPLEMENTED(); }
void OnShutdownStarting(ShutdownType type) { NOTIMPLEMENTED(); }
}
// static
bool FirstRun::IsChromeFirstRun() {
NOTIMPLEMENTED();
return false;
}
// static
bool FirstRun::ProcessMasterPreferences(const FilePath& user_data_dir,
const FilePath& master_prefs_path,
int* preference_details) {
NOTIMPLEMENTED();
return false;
}
// static
int FirstRun::ImportNow(Profile* profile, const CommandLine& cmdline) {
NOTIMPLEMENTED();
return 0;
}
// static
bool Upgrade::IsBrowserAlreadyRunning() {
NOTIMPLEMENTED();
return false;
}
// static
bool Upgrade::RelaunchChromeBrowser(const CommandLine& command_line) {
NOTIMPLEMENTED();
return true;
}
// static
bool Upgrade::SwapNewChromeExeIfPresent() {
NOTIMPLEMENTED();
return true;
}
void OpenFirstRunDialog(Profile* profile) { NOTIMPLEMENTED(); }
GURL NewTabUIURL() {
NOTIMPLEMENTED();
return GURL();
}
//--------------------------------------------------------------------------
PluginService* PluginService::GetInstance() {
return Singleton<PluginService>::get();
}
PluginService::PluginService()
: main_message_loop_(MessageLoop::current()),
resource_dispatcher_host_(NULL),
ui_locale_(g_browser_process->GetApplicationLocale()),
plugin_shutdown_handler_(NULL) {
}
PluginService::~PluginService() {
}
void PluginService::SetChromePluginDataDir(const FilePath& data_dir) {
AutoLock lock(lock_);
chrome_plugin_data_dir_ = data_dir;
}
//--------------------------------------------------------------------------
void InstallJankometer(const CommandLine&) {
NOTIMPLEMENTED();
}
//--------------------------------------------------------------------------
void Browser::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
NOTIMPLEMENTED();
}
GURL Browser::GetHomePage() {
NOTIMPLEMENTED();
return GURL("http://dev.chromium.org");
}
void Browser::LoadingStateChanged(TabContents* source) {
NOTIMPLEMENTED();
}
//--------------------------------------------------------------------------
TabContents* TabContents::CreateWithType(TabContentsType type,
Profile* profile,
SiteInstance* instance) {
switch (type) {
case TAB_CONTENTS_WEB:
return new WebContents(profile, instance, NULL, MSG_ROUTING_NONE, NULL);
default:
NOTIMPLEMENTED();
return NULL;
}
}
//--------------------------------------------------------------------------
bool RLZTracker::GetAccessPointRlz(AccessPoint point, std::wstring* rlz) {
NOTIMPLEMENTED();
return false;
}
bool RLZTracker::RecordProductEvent(Product product, AccessPoint point,
Event event) {
NOTIMPLEMENTED();
return false;
}
// This depends on porting all the plugin IPC messages.
bool IsPluginProcess() {
NOTIMPLEMENTED();
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() { }
}
#endif
#if defined(OS_LINUX)
BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) {
NOTIMPLEMENTED() << "CreateBrowserWindow";
return NULL;
}
#endif
//--------------------------------------------------------------------------
namespace chrome_browser_net {
void EnableDnsPrefetch(bool) { NOTIMPLEMENTED(); }
} // namespace chrome_browser_net
//--------------------------------------------------------------------------
void RunJavascriptMessageBox(WebContents* web_contents,
int dialog_flags,
const std::wstring& message_text,
const std::wstring& default_prompt_text,
bool display_suppress_checkbox,
IPC::Message* reply_msg) {
NOTIMPLEMENTED();
}
CacheManagerHost::CacheManagerHost() : revise_allocation_factory_(this) { }
CacheManagerHost::~CacheManagerHost() { }
void CacheManagerHost::ObserveActivity(int) { NOTIMPLEMENTED(); }
void CacheManagerHost::Remove(int) { NOTIMPLEMENTED(); }
void CacheManagerHost::Add(int) { NOTIMPLEMENTED(); }
void CacheManagerHost::ObserveStats(int, const CacheManager::UsageStats&) {
NOTIMPLEMENTED();
}
CacheManagerHost* CacheManagerHost::GetInstance() {
return Singleton<CacheManagerHost>::get();
}
void RunBeforeUnloadDialog(WebContents* web_contents,
const std::wstring& message_text,
IPC::Message* reply_msg) {
NOTIMPLEMENTED();
}
bool SSLManager::DeserializeSecurityInfo(const std::string&, int*, int*, int*) {
NOTIMPLEMENTED();
return false;
}
//--------------------------------------------------------------------------
ResourceMessageFilter::ResourceMessageFilter(
ResourceDispatcherHost* resource_dispatcher_host,
PluginService* plugin_service,
printing::PrintJobManager* print_job_manager,
int render_process_host_id,
Profile* profile,
RenderWidgetHelper* render_widget_helper,
SpellChecker* spellchecker)
: ALLOW_THIS_IN_INITIALIZER_LIST(resolve_proxy_msg_helper_(this, NULL)) {
}
ResourceMessageFilter::~ResourceMessageFilter() { NOTIMPLEMENTED(); }
void ResourceMessageFilter::OnFilterAdded(IPC::Channel* channel) {
NOTIMPLEMENTED();
}
void ResourceMessageFilter::OnChannelConnected(int32 peer_pid) {
NOTIMPLEMENTED();
}
void ResourceMessageFilter::OnChannelClosing() { NOTIMPLEMENTED(); }
bool ResourceMessageFilter::OnMessageReceived(const IPC::Message& message) {
NOTIMPLEMENTED();
return false;
}
bool ResourceMessageFilter::Send(IPC::Message* message) {
NOTIMPLEMENTED();
return false;
}
void ResourceMessageFilter::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) { }
void ResourceMessageFilter::OnResolveProxyCompleted(
IPC::Message* reply_msg,int result, const std::string& proxy_list) {
NOTIMPLEMENTED();
}
ResolveProxyMsgHelper::ResolveProxyMsgHelper(Delegate* delegate,
net::ProxyService* proxy_service)
: ALLOW_THIS_IN_INITIALIZER_LIST(callback_(
this, &ResolveProxyMsgHelper::OnResolveProxyCompleted)) {
}
ResolveProxyMsgHelper::~ResolveProxyMsgHelper() { }
void ResolveProxyMsgHelper::OnResolveProxyCompleted(int) { NOTIMPLEMENTED(); }
#if defined(OS_MACOSX)
ResourceBundle* ResourceBundle::g_shared_instance_ = NULL;
// GetBitmapNamed() will leak, but there's no way around it for stubs.
SkBitmap* ResourceBundle::GetBitmapNamed(int) {
NOTIMPLEMENTED();
return new SkBitmap();
}
ResourceBundle::ResourceBundle() { }
ResourceBundle& ResourceBundle::GetSharedInstance() {
NOTIMPLEMENTED();
if (!g_shared_instance_)
g_shared_instance_ = new ResourceBundle;
return *g_shared_instance_;
}
#endif
void ResourceDispatcherHost::OnClosePageACK(int, int) {
NOTIMPLEMENTED();
}
void ResourceDispatcherHost::CancelRequestsForRenderView(int, int) {
NOTIMPLEMENTED();
}
void ProcessWatcher::EnsureProcessTerminated(int) {
NOTIMPLEMENTED();
}
#if defined(OS_MACOSX)
WebCursor::WebCursor() {
}
WebCursor::~WebCursor() {
}
bool WebCursor::Deserialize(const Pickle* pickle, void** iter) {
NOTIMPLEMENTED();
return false;
}
#endif
|