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

Unified Diff: mojo/shell/public/cpp/application_delegate.h

Issue 1675083002: Rename ApplicationDelegate to ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
Patch Set: . Created 4 years, 10 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 | « mojo/shell/public/cpp/application_connection.h ('k') | mojo/shell/public/cpp/application_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/public/cpp/application_delegate.h
diff --git a/mojo/shell/public/cpp/application_delegate.h b/mojo/shell/public/cpp/application_delegate.h
deleted file mode 100644
index b0a537f7907200dbc5e0af240b75cae5a41ab6a0..0000000000000000000000000000000000000000
--- a/mojo/shell/public/cpp/application_delegate.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2014 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 MOJO_SHELL_PUBLIC_CPP_APPLICATION_DELEGATE_H_
-#define MOJO_SHELL_PUBLIC_CPP_APPLICATION_DELEGATE_H_
-
-#include <stdint.h>
-#include <string>
-
-#include "mojo/public/cpp/system/macros.h"
-
-namespace mojo {
-
-class ApplicationConnection;
-class ApplicationImpl;
-class Shell;
-
-// An abstract class that the application may subclass to control various
-// behaviors of ApplicationImpl.
-class ApplicationDelegate {
- public:
- ApplicationDelegate();
- virtual ~ApplicationDelegate();
-
- // Called exactly once before any other method.
- virtual void Initialize(Shell* app, const std::string& url, uint32_t id);
-
- // Override this method to configure what services a connection supports when
- // being connected to from an app.
- // Return false to reject the connection entirely.
- virtual bool AcceptConnection(ApplicationConnection* connection);
-
- // Called when the shell connection has a connection error.
- //
- // Return true to shutdown the application. Return false to skip shutting
- // down the connection, but user is then required to call
- // ApplicationImpl::QuitNow() when done.
- virtual bool ShellConnectionLost();
-
- // Called before ApplicationImpl::Terminate(). After returning from this call
- // the delegate can no longer rely on the main run loop still running.
- virtual void Quit();
-
- private:
- MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationDelegate);
-};
-
-} // namespace mojo
-
-#endif // MOJO_SHELL_PUBLIC_CPP_APPLICATION_DELEGATE_H_
« no previous file with comments | « mojo/shell/public/cpp/application_connection.h ('k') | mojo/shell/public/cpp/application_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698