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

Side by Side Diff: chrome/browser/ui/webui/uber/uber_ui.h

Issue 9967017: Upstream Android native crash handling changes. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: sync again Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_UBER_UBER_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_UBER_UBER_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_UBER_UBER_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_UBER_UBER_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/profiles/profile.h"
Mark Mentovai 2012/04/09 22:55:58 This too.
14 #include "content/public/browser/notification_observer.h"
15 #include "content/public/browser/notification_registrar.h"
13 #include "content/public/browser/web_ui_controller.h" 16 #include "content/public/browser/web_ui_controller.h"
14 17
15 // The WebUI class for the uber page (chrome://chrome). It manages the UI for 18 // The WebUI class for the uber page (chrome://chrome). It manages the UI for
16 // the uber page (navigation bar and so forth) as well as WebUI objects for 19 // the uber page (navigation bar and so forth) as well as WebUI objects for
17 // pages that appear in the uber page. 20 // pages that appear in the uber page.
18 class UberUI : public content::WebUIController { 21 class UberUI : public content::WebUIController {
19 public: 22 public:
20 explicit UberUI(content::WebUI* web_ui); 23 explicit UberUI(content::WebUI* web_ui);
21 virtual ~UberUI(); 24 virtual ~UberUI();
22 25
(...skipping 15 matching lines...) Expand all
38 41
39 // Creates and stores a WebUI for the given URL. 42 // Creates and stores a WebUI for the given URL.
40 void RegisterSubpage(const std::string& page_url); 43 void RegisterSubpage(const std::string& page_url);
41 44
42 // The WebUI*s in this map are owned. 45 // The WebUI*s in this map are owned.
43 SubpageMap sub_uis_; 46 SubpageMap sub_uis_;
44 47
45 DISALLOW_COPY_AND_ASSIGN(UberUI); 48 DISALLOW_COPY_AND_ASSIGN(UberUI);
46 }; 49 };
47 50
48 class UberFrameUI : public content::WebUIController { 51 class UberFrameUI : public content::NotificationObserver,
52 public content::WebUIController {
49 public: 53 public:
50 explicit UberFrameUI(content::WebUI* web_ui); 54 explicit UberFrameUI(content::WebUI* web_ui);
51 virtual ~UberFrameUI(); 55 virtual ~UberFrameUI();
52 56
53 private: 57 private:
58 // content::NotificationObserver implementation.
59 virtual void Observe(int type,
60 const content::NotificationSource& source,
61 const content::NotificationDetails& details) OVERRIDE;
62
63 content::NotificationRegistrar registrar_;
64
54 DISALLOW_COPY_AND_ASSIGN(UberFrameUI); 65 DISALLOW_COPY_AND_ASSIGN(UberFrameUI);
55 }; 66 };
56 67
57 #endif // CHROME_BROWSER_UI_WEBUI_UBER_UBER_UI_H_ 68 #endif // CHROME_BROWSER_UI_WEBUI_UBER_UBER_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698