Stop retring GCM unregistration requests after reaching maximum number
[chromium-blink-merge.git] / mandoline / ui / browser / browser_ui.h
blob2389c754647bc10f3dd2ad580f0bf6d0161174be
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MANDOLINE_UI_BROWSER_BROWSER_UI_H_
6 #define MANDOLINE_UI_BROWSER_BROWSER_UI_H_
8 namespace mojo {
9 class ApplicationImpl;
10 class View;
13 namespace mandoline {
15 class Browser;
17 class BrowserUI {
18 public:
19 virtual ~BrowserUI() {}
20 static BrowserUI* Create(Browser* browser,
21 mojo::ApplicationImpl* application_impl);
23 // Called when the Browser UI is embedded within the specified view.
24 // BrowserUI is destroyed prior to |root| being destroyed. That is, the
25 // BrowserUI implementations can assume |root| is never deleted out from under
26 // them.
27 virtual void Init(mojo::View* root) = 0;
29 virtual void OnURLChanged() = 0;
32 } // namespace mandoline
34 #endif // MANDOLINE_UI_BROWSER_BROWSER_UI_H_