| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_LOADER_LOADER_IO_THREAD_NOTIFIER |
| 6 #define CONTENT_BROWSER_LOADER_LOADER_IO_THREAD_NOTIFIER |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "content/public/browser/web_contents_observer.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 class RenderFrameHost; |
| 14 class WebContents; |
| 15 |
| 16 // This class is responsible for notifying the IO thread (specifically, the |
| 17 // ResourceDispatcherHostImpl) of frame events. It has an interace for callers |
| 18 // to use and also sends notifications on WebContentsObserver events. All |
| 19 // methods (static or class) will be called from the UI thread and post to the |
| 20 // IO thread. |
| 21 class LoaderIOThreadNotifier : public WebContentsObserver { |
| 22 public: |
| 23 explicit LoaderIOThreadNotifier(WebContents* web_contents); |
| 24 ~LoaderIOThreadNotifier() override; |
| 25 |
| 26 // content::WebContentsObserver: |
| 27 void RenderFrameDeleted(RenderFrameHost* render_frame_host) override; |
| 28 |
| 29 private: |
| 30 DISALLOW_COPY_AND_ASSIGN(LoaderIOThreadNotifier); |
| 31 }; |
| 32 |
| 33 } // namespace content |
| 34 |
| 35 #endif // CONTENT_BROWSER_LOADER_LOADER_IO_THREAD_NOTIFIER |
| OLD | NEW |