| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 IOS_WEB_VIEW_INTERNAL_CRIWV_WEB_MAIN_PARTS_H_ | 5 #ifndef IOS_WEB_VIEW_INTERNAL_CRIWV_WEB_MAIN_PARTS_H_ |
| 6 #define IOS_WEB_VIEW_INTERNAL_CRIWV_WEB_MAIN_PARTS_H_ | 6 #define IOS_WEB_VIEW_INTERNAL_CRIWV_WEB_MAIN_PARTS_H_ |
| 7 | 7 |
| 8 #include "ios/web/public/app/web_main_parts.h" | 8 #include "ios/web/public/app/web_main_parts.h" |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // Returns the CRIWVBrowserState for this embedder. | 26 // Returns the CRIWVBrowserState for this embedder. |
| 27 CRIWVBrowserState* browser_state() const { return browser_state_.get(); } | 27 CRIWVBrowserState* browser_state() const { return browser_state_.get(); } |
| 28 | 28 |
| 29 // Returns the off the record CRIWVBrowserState for this embedder. | 29 // Returns the off the record CRIWVBrowserState for this embedder. |
| 30 CRIWVBrowserState* off_the_record_browser_state() const { | 30 CRIWVBrowserState* off_the_record_browser_state() const { |
| 31 return off_the_record_browser_state_.get(); | 31 return off_the_record_browser_state_.get(); |
| 32 } | 32 } |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 // This object's delegate. | 35 // This object's delegate. |
| 36 id<CRIWVDelegate> delegate_; | 36 __unsafe_unretained id<CRIWVDelegate> delegate_; |
| 37 | 37 |
| 38 // The BrowserState for this embedder. | 38 // The BrowserState for this embedder. |
| 39 std::unique_ptr<CRIWVBrowserState> browser_state_; | 39 std::unique_ptr<CRIWVBrowserState> browser_state_; |
| 40 | 40 |
| 41 // The BrowserState for this embedder. | 41 // The BrowserState for this embedder. |
| 42 std::unique_ptr<CRIWVBrowserState> off_the_record_browser_state_; | 42 std::unique_ptr<CRIWVBrowserState> off_the_record_browser_state_; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace ios_web_view | 45 } // namespace ios_web_view |
| 46 | 46 |
| 47 #endif // IOS_WEB_VIEW_INTERNAL_CRIWV_WEB_MAIN_PARTS_H_ | 47 #endif // IOS_WEB_VIEW_INTERNAL_CRIWV_WEB_MAIN_PARTS_H_ |
| OLD | NEW |