forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcast_navigation_ui_data.h
43 lines (30 loc) · 1.21 KB
/
cast_navigation_ui_data.h
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
// Copyright 2018 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 CHROMECAST_BROWSER_CAST_NAVIGATION_UI_DATA_H_
#define CHROMECAST_BROWSER_CAST_NAVIGATION_UI_DATA_H_
#include <string>
#include "base/macros.h"
#include "content/public/browser/navigation_ui_data.h"
namespace content {
class WebContents;
}
namespace chromecast {
namespace shell {
class CastNavigationUIData : public content::NavigationUIData {
public:
static void SetAppPropertiesForWebContents(content::WebContents* web_contents,
const std::string& session_id,
bool is_audio_app);
static std::string GetSessionIdForWebContents(
content::WebContents* web_contents);
explicit CastNavigationUIData(const std::string& session_id);
const std::string& session_id() const { return session_id_; }
std::unique_ptr<content::NavigationUIData> Clone() override;
private:
std::string session_id_;
DISALLOW_COPY_AND_ASSIGN(CastNavigationUIData);
};
} // namespace shell
} // namespace chromecast
#endif // CHROMECAST_BROWSER_CAST_NAVIGATION_UI_DATA_H_