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

Side by Side Diff: chrome/browser/memory/chrome_memory_coordinator_delegate.h

Issue 2399293002: Add MemoryCoordinatorDelegate (Closed)
Patch Set: Add a separate delegate class Created 4 years, 2 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
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 CHROME_BROWSER_MEMORY_CHROME_MEMORY_COORDINATOR_DELEGATE_H_
6 #define CHROME_BROWSER_MEMORY_CHROME_MEMORY_COORDINATOR_DELEGATE_H_
7
8 #include "base/memory/weak_ptr.h"
9 #include "content/public/browser/memory_coordinator_delegate.h"
10
11 namespace memory {
12
13 // A MemoryCoordinatorDelegate which uses TabManager internally.
14 class ChromeMemoryCoordinatorDelegate
15 : public content::MemoryCoordinatorDelegate {
16 public:
17 static std::unique_ptr<content::MemoryCoordinatorDelegate> Create();
18
19 ~ChromeMemoryCoordinatorDelegate() override;
20
21 // MemoryCoordinatorDelegate implementation.
22 bool CanSuspendBackgroundedRenderer(int render_process_id) override;
23
24 private:
25 ChromeMemoryCoordinatorDelegate();
26
27 DISALLOW_COPY_AND_ASSIGN(ChromeMemoryCoordinatorDelegate);
28 };
29
30 } // namespace memory
31
32 #endif // CHROME_BROWSER_MEMORY_CHROME_MEMORY_COORDINATOR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/memory/chrome_memory_coordinator_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698