Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/content_browser_client.h" | 5 #include "content/browser/content_browser_client.h" |
| 6 | 6 |
| 7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
| 8 #include "content/browser/javascript_dialog_delegate.h" | |
| 8 #include "content/browser/webui/empty_web_ui_factory.h" | 9 #include "content/browser/webui/empty_web_ui_factory.h" |
| 9 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| 10 | 11 |
| 11 namespace content { | 12 namespace content { |
| 12 | 13 |
| 13 void ContentBrowserClient::RenderViewHostCreated( | 14 void ContentBrowserClient::RenderViewHostCreated( |
| 14 RenderViewHost* render_view_host) { | 15 RenderViewHost* render_view_host) { |
| 15 } | 16 } |
| 16 | 17 |
| 17 void ContentBrowserClient::BrowserRenderProcessHostCreated( | 18 void ContentBrowserClient::BrowserRenderProcessHostCreated( |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 | 87 |
| 87 void ContentBrowserClient::RevealFolderInOS(const FilePath& path) { | 88 void ContentBrowserClient::RevealFolderInOS(const FilePath& path) { |
| 88 } | 89 } |
| 89 | 90 |
| 90 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 91 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 91 int ContentBrowserClient::GetCrashSignalFD(const std::string& process_type) { | 92 int ContentBrowserClient::GetCrashSignalFD(const std::string& process_type) { |
| 92 return -1; | 93 return -1; |
| 93 } | 94 } |
| 94 #endif | 95 #endif |
| 95 | 96 |
| 97 void ContentBrowserClient::RunJavaScriptDialog( | |
| 98 JavaScriptDialogDelegate* delegate, | |
| 99 const GURL& frame_url, | |
| 100 int dialog_flags, | |
| 101 const string16& message_text, | |
| 102 const string16& default_prompt_text, | |
| 103 IPC::Message* reply_message, | |
| 104 bool* did_suppress_message, | |
| 105 Profile* profile) { | |
| 106 *did_suppress_message = true; | |
| 107 } | |
| 108 | |
| 109 void ContentBrowserClient::RunBeforeUnloadDialog( | |
| 110 JavaScriptDialogDelegate* delegate, | |
| 111 const string16& message_text, | |
| 112 IPC::Message* reply_msg) { | |
|
jam
2011/06/01 19:20:08
shouldn't the default implementation call delegate
Avi (use Gerrit)
2011/06/01 19:40:34
Done.
| |
| 113 } | |
| 114 | |
| 115 void ContentBrowserClient::ResetJavaScriptState( | |
| 116 JavaScriptDialogDelegate* delegate) { | |
| 117 } | |
| 118 | |
| 96 } // namespace content | 119 } // namespace content |
| OLD | NEW |