OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_INTENTS_INTENT_INJECTOR_H_ | 5 #ifndef CONTENT_BROWSER_INTENTS_INTENT_INJECTOR_H_ |
6 #define CONTENT_BROWSER_INTENTS_INTENT_INJECTOR_H_ | 6 #define CONTENT_BROWSER_INTENTS_INTENT_INJECTOR_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
10 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
11 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
13 #include "base/string16.h" | 12 #include "base/string16.h" |
14 #include "content/public/browser/web_contents_observer.h" | 13 #include "content/public/browser/web_contents_observer.h" |
15 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
16 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
17 #include "webkit/glue/web_intent_reply_data.h" | 16 #include "webkit/glue/web_intent_reply_data.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 GURL initial_url_; | 83 GURL initial_url_; |
85 | 84 |
86 // The injector may be Abandon()ed and deleted before the dispatcher. Use weak | 85 // The injector may be Abandon()ed and deleted before the dispatcher. Use weak |
87 // pointers to ensure the notification callback remains valid. | 86 // pointers to ensure the notification callback remains valid. |
88 base::WeakPtrFactory<IntentInjector> weak_factory_; | 87 base::WeakPtrFactory<IntentInjector> weak_factory_; |
89 | 88 |
90 DISALLOW_COPY_AND_ASSIGN(IntentInjector); | 89 DISALLOW_COPY_AND_ASSIGN(IntentInjector); |
91 }; | 90 }; |
92 | 91 |
93 #endif // CONTENT_BROWSER_INTENTS_INTENT_INJECTOR_H_ | 92 #endif // CONTENT_BROWSER_INTENTS_INTENT_INJECTOR_H_ |
OLD | NEW |