| OLD | NEW |
| 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 CHROME_BROWSER_GPU_THREE_D_API_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_GPU_THREE_D_API_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_GPU_THREE_D_API_OBSERVER_H_ | 6 #define CHROME_BROWSER_GPU_THREE_D_API_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "content/public/browser/gpu_data_manager_observer.h" | 9 #include "content/public/browser/gpu_data_manager_observer.h" |
| 10 | 10 |
| 11 class ThreeDAPIObserver : public content::GpuDataManagerObserver { | 11 class ThreeDAPIObserver : public content::GpuDataManagerObserver { |
| 12 public: | 12 public: |
| 13 ThreeDAPIObserver(); | 13 ThreeDAPIObserver(); |
| 14 virtual ~ThreeDAPIObserver(); | 14 virtual ~ThreeDAPIObserver(); |
| 15 | 15 |
| 16 private: | 16 private: |
| 17 virtual void DidBlock3DAPIs(const GURL& url, | 17 virtual void DidBlock3DAPIs(const GURL& url, |
| 18 int render_process_id, | 18 int render_process_id, |
| 19 int render_view_id, | 19 int render_view_id, |
| 20 content::ThreeDAPIType requester) OVERRIDE; | 20 content::ThreeDAPIType requester) override; |
| 21 | 21 |
| 22 DISALLOW_COPY_AND_ASSIGN(ThreeDAPIObserver); | 22 DISALLOW_COPY_AND_ASSIGN(ThreeDAPIObserver); |
| 23 }; | 23 }; |
| 24 | 24 |
| 25 #endif // CHROME_BROWSER_GPU_THREE_D_API_OBSERVER_H_ | 25 #endif // CHROME_BROWSER_GPU_THREE_D_API_OBSERVER_H_ |
| OLD | NEW |