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

Side by Side Diff: extensions/browser/app_window/app_window_contents.h

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: Created 5 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_ 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_
6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_ 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_
7 7
8 #include "base/basictypes.h" 8 #include <stdint.h>
9
10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
10 #include "content/public/browser/web_contents_observer.h" 12 #include "content/public/browser/web_contents_observer.h"
11 #include "extensions/browser/app_window/app_window.h" 13 #include "extensions/browser/app_window/app_window.h"
12 #include "url/gurl.h" 14 #include "url/gurl.h"
13 15
14 namespace content { 16 namespace content {
15 class BrowserContext; 17 class BrowserContext;
16 class RenderFrameHost; 18 class RenderFrameHost;
17 } 19 }
18 20
19 namespace extensions { 21 namespace extensions {
20 22
21 struct DraggableRegion; 23 struct DraggableRegion;
22 24
23 // AppWindowContents class specific to app windows. It maintains a 25 // AppWindowContents class specific to app windows. It maintains a
24 // WebContents instance and observes it for the purpose of passing 26 // WebContents instance and observes it for the purpose of passing
25 // messages to the extensions system. 27 // messages to the extensions system.
26 class AppWindowContentsImpl : public AppWindowContents, 28 class AppWindowContentsImpl : public AppWindowContents,
27 public content::WebContentsObserver { 29 public content::WebContentsObserver {
28 public: 30 public:
29 explicit AppWindowContentsImpl(AppWindow* host); 31 explicit AppWindowContentsImpl(AppWindow* host);
30 ~AppWindowContentsImpl() override; 32 ~AppWindowContentsImpl() override;
31 33
32 // AppWindowContents 34 // AppWindowContents
33 void Initialize(content::BrowserContext* context, const GURL& url) override; 35 void Initialize(content::BrowserContext* context, const GURL& url) override;
34 void LoadContents(int32 creator_process_id) override; 36 void LoadContents(int32_t creator_process_id) override;
35 void NativeWindowChanged(NativeAppWindow* native_app_window) override; 37 void NativeWindowChanged(NativeAppWindow* native_app_window) override;
36 void NativeWindowClosed() override; 38 void NativeWindowClosed() override;
37 void DispatchWindowShownForTests() const override; 39 void DispatchWindowShownForTests() const override;
38 void OnWindowReady() override; 40 void OnWindowReady() override;
39 content::WebContents* GetWebContents() const override; 41 content::WebContents* GetWebContents() const override;
40 WindowController* GetWindowController() const override; 42 WindowController* GetWindowController() const override;
41 43
42 private: 44 private:
43 // content::WebContentsObserver 45 // content::WebContentsObserver
44 bool OnMessageReceived(const IPC::Message& message) override; 46 bool OnMessageReceived(const IPC::Message& message) override;
45 void ReadyToCommitNavigation(content::NavigationHandle* handle) override; 47 void ReadyToCommitNavigation(content::NavigationHandle* handle) override;
46 48
47 void UpdateDraggableRegions(const std::vector<DraggableRegion>& regions); 49 void UpdateDraggableRegions(const std::vector<DraggableRegion>& regions);
48 void SuspendRenderFrameHost(content::RenderFrameHost* rfh); 50 void SuspendRenderFrameHost(content::RenderFrameHost* rfh);
49 51
50 AppWindow* host_; // This class is owned by |host_| 52 AppWindow* host_; // This class is owned by |host_|
51 GURL url_; 53 GURL url_;
52 scoped_ptr<content::WebContents> web_contents_; 54 scoped_ptr<content::WebContents> web_contents_;
53 bool is_blocking_requests_; 55 bool is_blocking_requests_;
54 bool is_window_ready_; 56 bool is_window_ready_;
55 57
56 DISALLOW_COPY_AND_ASSIGN(AppWindowContentsImpl); 58 DISALLOW_COPY_AND_ASSIGN(AppWindowContentsImpl);
57 }; 59 };
58 60
59 } // namespace extensions 61 } // namespace extensions
60 62
61 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_ 63 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_
OLDNEW
« no previous file with comments | « extensions/browser/app_window/app_window_client.cc ('k') | extensions/browser/app_window/app_window_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698