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

Side by Side Diff: content/renderer/browser_plugin/old/browser_plugin.cc

Issue 10555029: Browser Plugin: Move to old directories (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
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 #include "content/renderer/browser_plugin/browser_plugin.h" 5 #include "content/renderer/browser_plugin/old/browser_plugin.h"
6 6
7 #include "base/atomic_sequence_num.h" 7 #include "base/atomic_sequence_num.h"
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/process.h" 10 #include "base/process.h"
11 #include "base/string_number_conversions.h" 11 #include "base/string_number_conversions.h"
12 #include "base/string_piece.h" 12 #include "base/string_piece.h"
13 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "content/common/browser_plugin_messages.h" 15 #include "content/common/browser_plugin_messages.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // TODO(fsamuel): We should delay the swapping out of the current plugin 148 // TODO(fsamuel): We should delay the swapping out of the current plugin
149 // until after the guest's WebGraphicsContext3D has been initialized. That 149 // until after the guest's WebGraphicsContext3D has been initialized. That
150 // way, we immediately have something to render onto the screen. 150 // way, we immediately have something to render onto the screen.
151 container->setPlugin(new_plugin); 151 container->setPlugin(new_plugin);
152 container->invalidate(); 152 container->invalidate();
153 container->reportGeometry(); 153 container->reportGeometry();
154 if (plugin_) 154 if (plugin_)
155 plugin_->destroy(); 155 plugin_->destroy();
156 plugin_ = new_plugin; 156 plugin_ = new_plugin;
157 } 157 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698