| OLD | NEW |
| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 void OnWindowReady() override; | 40 void OnWindowReady() override; |
| 41 content::WebContents* GetWebContents() const override; | 41 content::WebContents* GetWebContents() const override; |
| 42 WindowController* GetWindowController() const override; | 42 WindowController* GetWindowController() const override; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 // content::WebContentsObserver | 45 // content::WebContentsObserver |
| 46 bool OnMessageReceived(const IPC::Message& message) override; | 46 bool OnMessageReceived(const IPC::Message& message) override; |
| 47 void ReadyToCommitNavigation(content::NavigationHandle* handle) override; | 47 void ReadyToCommitNavigation(content::NavigationHandle* handle) override; |
| 48 | 48 |
| 49 void UpdateDraggableRegions(const std::vector<DraggableRegion>& regions); | 49 void UpdateDraggableRegions(const std::vector<DraggableRegion>& regions); |
| 50 void SuspendRenderFrameHost(content::RenderFrameHost* rfh); | |
| 51 | 50 |
| 52 AppWindow* host_; // This class is owned by |host_| | 51 AppWindow* host_; // This class is owned by |host_| |
| 53 GURL url_; | 52 GURL url_; |
| 54 scoped_ptr<content::WebContents> web_contents_; | 53 scoped_ptr<content::WebContents> web_contents_; |
| 55 bool is_blocking_requests_; | |
| 56 bool is_window_ready_; | 54 bool is_window_ready_; |
| 57 | 55 |
| 58 DISALLOW_COPY_AND_ASSIGN(AppWindowContentsImpl); | 56 DISALLOW_COPY_AND_ASSIGN(AppWindowContentsImpl); |
| 59 }; | 57 }; |
| 60 | 58 |
| 61 } // namespace extensions | 59 } // namespace extensions |
| 62 | 60 |
| 63 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_ | 61 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_ |
| OLD | NEW |