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

Side by Side Diff: content/browser/loader/loader_io_thread_notifier.h

Issue 2197763002: Move LoaderIOThreadNotifier out of resource_dispatcher_host_impl.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move definition Created 4 years, 4 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
« no previous file with comments | « no previous file | content/browser/loader/loader_io_thread_notifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « no previous file | content/browser/loader/loader_io_thread_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698