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

Side by Side Diff: content/browser/manifest/manifest_manager_host.h

Issue 612323010: Align base::hash_map with C++11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try a different tack for C++ insanity Created 6 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
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 CONTENT_RENDERER_MANIFEST_MANIFEST_MANAGER_HOST_H_ 5 #ifndef CONTENT_RENDERER_MANIFEST_MANIFEST_MANAGER_HOST_H_
6 #define CONTENT_RENDERER_MANIFEST_MANIFEST_MANAGER_HOST_H_ 6 #define CONTENT_RENDERER_MANIFEST_MANIFEST_MANAGER_HOST_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "content/public/browser/web_contents_observer.h" 10 #include "content/public/browser/web_contents_observer.h"
11 11
12 #if defined(COMPILER_GCC)
13 namespace BASE_HASH_NAMESPACE {
14 template<>
15 struct hash<content::RenderFrameHost*> {
16 uint64 operator()(content::RenderFrameHost* ptr) const {
17 return hash<uint64>()(reinterpret_cast<uint64>(ptr));
18 }
19 };
20 }
21 #endif
22
23 namespace content { 12 namespace content {
24 13
25 class RenderFrameHost; 14 class RenderFrameHost;
26 class WebContents; 15 class WebContents;
27 struct Manifest; 16 struct Manifest;
28 17
29 // ManifestManagerHost is a helper class that allows callers to get the Manifest 18 // ManifestManagerHost is a helper class that allows callers to get the Manifest
30 // associated with a frame. It handles the IPC messaging with the child process. 19 // associated with a frame. It handles the IPC messaging with the child process.
31 // TODO(mlamouri): keep a cached version and a dirty bit here. 20 // TODO(mlamouri): keep a cached version and a dirty bit here.
32 class ManifestManagerHost : public WebContentsObserver { 21 class ManifestManagerHost : public WebContentsObserver {
(...skipping 24 matching lines...) Expand all
57 CallbackMap* GetCallbackMapForFrame(RenderFrameHost*); 46 CallbackMap* GetCallbackMapForFrame(RenderFrameHost*);
58 47
59 FrameCallbackMap pending_callbacks_; 48 FrameCallbackMap pending_callbacks_;
60 49
61 DISALLOW_COPY_AND_ASSIGN(ManifestManagerHost); 50 DISALLOW_COPY_AND_ASSIGN(ManifestManagerHost);
62 }; 51 };
63 52
64 } // namespace content 53 } // namespace content
65 54
66 #endif // CONTENT_RENDERER_MANIFEST_MANIFEST_MANAGER_HOST_H_ 55 #endif // CONTENT_RENDERER_MANIFEST_MANIFEST_MANAGER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698