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

Unified Diff: content/public/browser/presentation_session.h

Issue 2617143006: [Presentation API] Move Presentation API structs to public/common (Closed)
Patch Set: Rebase Created 3 years, 11 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
Index: content/public/browser/presentation_session.h
diff --git a/content/public/browser/presentation_session.h b/content/public/browser/presentation_session.h
deleted file mode 100644
index 8e5eb54676d349921ea4872aa2c93fd359a0a9dd..0000000000000000000000000000000000000000
--- a/content/public/browser/presentation_session.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2015 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_PUBLIC_BROWSER_PRESENTATION_SESSION_H_
-#define CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_
-
-#include <string>
-
-#include "content/common/content_export.h"
-#include "url/gurl.h"
-
-namespace content {
-
-enum PresentationConnectionState {
- PRESENTATION_CONNECTION_STATE_CONNECTING,
- PRESENTATION_CONNECTION_STATE_CONNECTED,
- PRESENTATION_CONNECTION_STATE_CLOSED,
- PRESENTATION_CONNECTION_STATE_TERMINATED
-};
-
-// TODO(imcheng): Use WENT_AWAY for 1-UA mode when it is implemented
-// (crbug.com/513859).
-enum PresentationConnectionCloseReason {
- PRESENTATION_CONNECTION_CLOSE_REASON_CONNECTION_ERROR,
- PRESENTATION_CONNECTION_CLOSE_REASON_CLOSED,
- PRESENTATION_CONNECTION_CLOSE_REASON_WENT_AWAY
-};
-
-// TODO(imcheng): Rename to PresentationConnectionInfo.
-// Represents a presentation session that has been established via either
-// browser actions or Presentation API.
-struct CONTENT_EXPORT PresentationSessionInfo {
- PresentationSessionInfo(const GURL& presentation_url,
- const std::string& presentation_id);
- ~PresentationSessionInfo();
-
- const GURL presentation_url;
- const std::string presentation_id;
-};
-
-// Possible reasons why an attempt to create a presentation session failed.
-enum PresentationErrorType {
- PRESENTATION_ERROR_NO_AVAILABLE_SCREENS,
- PRESENTATION_ERROR_SESSION_REQUEST_CANCELLED,
- PRESENTATION_ERROR_NO_PRESENTATION_FOUND,
- PRESENTATION_ERROR_UNKNOWN,
-};
-
-// Struct returned when an attempt to create a presentation session failed.
-struct CONTENT_EXPORT PresentationError {
- PresentationError(PresentationErrorType error_type,
- const std::string& message);
- ~PresentationError();
-
- const PresentationErrorType error_type;
- const std::string message;
-};
-
-} // namespace content
-
-#endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_
« no previous file with comments | « content/public/browser/presentation_service_delegate.h ('k') | content/public/browser/presentation_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698