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

Unified Diff: content/shell/shell_javascript_dialog_manager.h

Issue 23316003: [content shell] move browser process stuff into browser/ subdir (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/shell_javascript_dialog_mac.mm ('k') | content/shell/shell_javascript_dialog_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_javascript_dialog_manager.h
diff --git a/content/shell/shell_javascript_dialog_manager.h b/content/shell/shell_javascript_dialog_manager.h
deleted file mode 100644
index 1327ab7adae8f9da69aca4c607d8d7491fac14a7..0000000000000000000000000000000000000000
--- a/content/shell/shell_javascript_dialog_manager.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_
-#define CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_
-
-#include "base/callback_forward.h"
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "content/public/browser/javascript_dialog_manager.h"
-
-namespace content {
-
-class ShellJavaScriptDialog;
-
-class ShellJavaScriptDialogManager : public JavaScriptDialogManager {
- public:
- ShellJavaScriptDialogManager();
- virtual ~ShellJavaScriptDialogManager();
-
- // JavaScriptDialogManager:
- virtual void RunJavaScriptDialog(
- WebContents* web_contents,
- const GURL& origin_url,
- const std::string& accept_lang,
- JavaScriptMessageType javascript_message_type,
- const string16& message_text,
- const string16& default_prompt_text,
- const DialogClosedCallback& callback,
- bool* did_suppress_message) OVERRIDE;
-
- virtual void RunBeforeUnloadDialog(
- WebContents* web_contents,
- const string16& message_text,
- bool is_reload,
- const DialogClosedCallback& callback) OVERRIDE;
-
- virtual void CancelActiveAndPendingDialogs(
- WebContents* web_contents) OVERRIDE;
-
- virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE;
-
- // Called by the ShellJavaScriptDialog when it closes.
- void DialogClosed(ShellJavaScriptDialog* dialog);
-
- // Used for content_browsertests.
- void set_dialog_request_callback(const base::Closure& callback) {
- dialog_request_callback_ = callback;
- }
-
- private:
-#if defined(OS_MACOSX) || defined(OS_WIN) || defined(TOOLKIT_GTK)
- // The dialog being shown. No queueing.
- scoped_ptr<ShellJavaScriptDialog> dialog_;
-#else
- // TODO: implement ShellJavaScriptDialog for other platforms, drop this #if
-#endif
-
- base::Closure dialog_request_callback_;
-
- DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialogManager);
-};
-
-} // namespace content
-
-#endif // CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_
« no previous file with comments | « content/shell/shell_javascript_dialog_mac.mm ('k') | content/shell/shell_javascript_dialog_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698